|
Answer» OS: win 2k
I'm tweaking my batch program and need some help.
Bascially I have a .bat progam listed in a folder called "test files". All my user has to do is use the windows explorer and navigate to the test file folder and double click the .bat program.
In my batch program I'm doing
1)BACKING up one file directory by typing in "cd.." 2)next line in .bat program I type the command to compile the exe 3)next line I want to copy the complied exe back into folder "testfiles" which is a folder in the same directory as the .exe. The copy command WANTS the destination location to be an absolute PATH which I can't assume will be the same for each user depending where they place there testfiles folder.
so in the nut shell I'm trying to do this in the middle of my batch progam
cd.. dcc32 zzz.dpr copy zzz.exe "cd testfiles"
i get a dos prompt asking do I want overwrite cd testfiles? shouldn't it be asking if I want overwrite zzz.exe if there was one in the testfiles folder? also I want to copy and overwrite the zzz.exe in all cases and be asked by a prompt.
any suggestions or help would be appreciated
thanksQuote OS: win 2k
also I want to copy and overwrite the zzz.exe in all cases and be asked by a prompt.
mean to say not prompted Change the LAST line to "copy zzz.exe testfiles" or "copy zzz.exe testfiles\zzz.exe" (minus the quotes).
|