I am trying to get the user to type in what they want to copy (in DOS), then copy it to the location they wish to copy, through a Batch File in DOS.
Please take a look at my code here:
http://www.triangleeventpros.com/DOS/bat.html
(Please only the latest version of DOS, NOT the old commands for older versions)
My main problem is:
I am having the most trouble around this part of the code... it's like it's not reading it right...
WHAT do I do.
I need it to validate if the File or Drive exists or not.
HELP.
Example)
IF not exist %1 echo File does not exist
goto END
IF not exist %2 echo Location does not exist
goto END
2006-06-28
10:01:41
·
2 answers
·
asked by
Am
4
in
Computers & Internet
➔ Other - Computers
The "else" statement did not work in DOS ...
2006-06-28
12:56:21 ·
update #1
Your way didn't work, but the same Q I had posted in a different area this dude answered it, so no sweat... but thanks!
See:
The old dude “N2FC” was right (not tryin’ to diss your age)…
I mean at first it didn’t work
But then when I told it to GOTO instead of just “not exist” stuff
Then after I moved it around (the %2==%2) then it worked…
Check it out pplZ!
http://www.triangleeventpros.com/DOS/batworking.html
THANK U!!!!!!!!!!!!!!!!!!
(Too bad I already turned it in before I got it working LOL, but at least now I know what I was doin’ wrong Hehehehe)
2006-06-28
13:16:52 ·
update #2