PDA

View Full Version : running ms dos batch files in winxp


npoon
Jun 10th, 2007, 04:12 PM
i am using a batch file basically to edit a file in "my documents" and then copy it onto the network. i am using a ms dos batch file and for some reason it is saying, "can't find the path". i suspect that the reason why is that msdos only understand 12 characters and you can't use; c:\documents and settings...... so then what does a person use? i know that in win98se, my documents truncates in the command prompt window to \mydocu~1...so what about in winxp?

Aridyme
Jun 10th, 2007, 04:22 PM
Either use the "~" names or just enclose the entire path in quotes. For example:

copy "c:\documents and settings\dir1\file.ext" "c:\documents and settings\dir2\"