| |
RACM
Posts: 1
Score: 0
Joined: 3/28/2005
From: USA
Status: offline
|
I want to get the file names, then use an external executable to process these file names. I figured out how to get the file names but am having trouble on the syntax for having the executable process the files. Here's what I have: Set filesys = CreateObject("Scripting.FileSystemObject") filepath = filesys.GetAbsolutePathName("c:\") Set TargetFolder = filesys.GetFolder(filepath & "\data\") Set FolderFiles = TargetFolder.Files For each targetfile in FolderFiles Dim WshShell,oExec Set WshShell = wscript.createobject("wscript.shell") Set oExec = WshShell.Exec("c:\processit.exe ") next On the second to last line I'd like to append the targetfile.name to the executable. Any help would be greatly appreciated. Thank you.
|
|