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
09:54:43
·
4 answers
·
asked by
Am
4
in
Computers & Internet
➔ Programming & Design
What's "Python"?
Can it see what I'm doing wrong in my DOS code stuff?
2006-06-28
10:03:47 ·
update #1
I tryed changing the them to goto this is what happened...
http://www.triangleeventpros.com/DOS/bat2.html
2006-06-28
12:49:10 ·
update #2
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:13:55 ·
update #3