I've only just started using batch files and I think I've gotten a little to tricky for myself.
I created a batch file in which to dump the filenames after a replace command so that the file looks like this:
replacing G:\filename1
replacing G:\filename2
etc...
I then created a new batch batch file to move the newly replaced files to another directory for a short time:
move %1 G:\directory1\
I named this second batch file "replacing.bat" so that when I ran the first one, it saw "replacing" as a command and the file as the variable.
Now to my delight, this worked perfectly for the first file, but to my disappointment, the first file is all that it did.
It seems that after running the replacing command the first time, control is not returned back to the first batch file so that the second line can be run.
Does anybody know why this would happen and how I can fix it?
Thanks in advance,
Jono