HELP Simple IF File Moving!!!
Posted: 10 Mar 2011 21:06
I have a file in folderone/sub1 called Hello.txt
Now lets say I want a script to delete that file out, and the same script will also copy another file in in, if its not there.
So I can do
IF EXIST folderone/sub1/Hello.txt GOTO :!
:1 del folderone/sub1/hello.txt
exit
But now what do I do, thats the part that gets rid of it. Now how do I make it check if its there, and then copy the other file in?
(The other file is the same file but its in another location, its there to be copied in)
Now lets say I want a script to delete that file out, and the same script will also copy another file in in, if its not there.
So I can do
IF EXIST folderone/sub1/Hello.txt GOTO :!
:1 del folderone/sub1/hello.txt
exit
But now what do I do, thats the part that gets rid of it. Now how do I make it check if its there, and then copy the other file in?
(The other file is the same file but its in another location, its there to be copied in)