|
Answer» Here is what I have so far and it works. So the help pages here have done me some good. But I WOULD like to be promped for a file name before the rest of this runs and that file name be the name that the "temp" directory is. So that temp dir is not OVERWRITTEN. "we have been deleting eachothers work on accident" Any help would be apriciated even if its just being pointed to some examples. I did go thru the ones on this site and did not see any that looked like they applied. thanks Chance
Code: [Select] @echo off Echo Changing to the Print Server Monpath1 Directory! m: cd \ cd\tif's cd plans md temp P: cd \ cd Monpath1 copy monp01ath1.tif m:\tif's\plans\temp\2-Stem.tif copy monp02ath1.tif m:\tif's\plans\temp\3-Floor.tif copy monp03ath1.tif m:\tif's\plans\temp\4-Elc.tif copy monp04ath1.tif m:\tif's\plans\temp\5-Elev.tif copy monp05ath1.tif m:\tif's\plans\temp\6-Roof.tif echo Finished COPYING files to Server Tif's/plans Directory! del *.tif
Assuming that you just try to read a name from the DOS shell, use this:
Code: [Select]set /p name=Enter file name: echo %name% Older DOS versions (before W2K and W-XP) use the choice command instead of set /p.
Cheers, [glb]cs[/glb]THANK you very MUCH. That is exactly what i needed The finshed product is Code: [Select]@echo off Echo Changing to the Print Server Monpath1 Directory! m: cd \ cd\tif's cd plans set /p name=Enter file name: echo %name% md %name% P: cd \ cd Monpath1 copy monp01ath1.tif m:\tif's\plans\%name%\2-Stem.tif copy monp02ath1.tif m:\tif's\plans\%name%\3-Floor.tif copy monp03ath1.tif m:\tif's\plans\%name%\4-Elc.tif copy monp04ath1.tif m:\tif's\plans\%name%\5-Elev.tif copy monp05ath1.tif m:\tif's\plans\%name%\6-Roof.tif echo Finished copying files to Server Tif's/plans Directory! del *.tif
I have been trying to figure this out all day. You are a life saver.You're welcome!
|