Need help on DOS scripting

phillydog

Senior member
Dec 19, 2001
472
0
0
Anyone know of any good sites for DOS scripting?

I need to take files such as:

c:\aaa\test.txt
c:\bbb\test.txt
c:\ccc\test.txt

and copy them to

c:\new\aaa-test.txt
c:\new\bbb-test.txt
c:\new\ccc-test.txt

Please help
 

DanTMWTMP

Lifer
Oct 7, 2001
15,908
19
81
hmm... install a unix shell, then I can help you :).


I donno the syntax for dos shell, but give something like this a try: ?


cp /???/test.txt > ???-test.txt

I donno the dos equivalent to "?"
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: CuriousMike
copy ???.txt ???-test.txt
If you want it to complain that you can't name a file with a question mark, sure, that will work great.