I am writing a script to concatenate all the files with a particular extension into one. I tried something like this:
objfso.copyfile "m:\*.erg", "m:\big.txt",true
but it gives a "path not found" error
Copying the files as a group without concatenation works:
objfso.copyfile "m:\*.erg", "p:\apps\testonly",true
Using the DOS shell works:
objshell.run("cmd /c COPY M:\*.ERG M:\big.txt")
but I don't want to use it because it runs asynchronously.
How do I concatenate files in
VBScript. Am I trying the impossible?
objfso.copyfile "m:\*.erg", "m:\big.txt",true
but it gives a "path not found" error
Copying the files as a group without concatenation works:
objfso.copyfile "m:\*.erg", "p:\apps\testonly",true
Using the DOS shell works:
objshell.run("cmd /c COPY M:\*.ERG M:\big.txt")
but I don't want to use it because it runs asynchronously.
How do I concatenate files in
VBScript. Am I trying the impossible?