Grake Posted July 13, 2005 Posted July 13, 2005 Hi again,I had this figured out a while back, but put my xp cd to a break for a while, now im back at it, and forgot it anyways, how can I copy a file from C:\Install\file.dat to say C:\1\2\3\file.dat. But folders 1, 2 and 3 needs to be created, and the file.dat needs to be placed in it.Any ideas? thnx
Thauzar Posted July 13, 2005 Posted July 13, 2005 first create your foldersMD C:\1\2\3\then copy the filecopy c:\install\file.dat c:\1\2\3\file.data quick search in google for dos copy would have answered your question. That's what I did this afternoon when I forgot xcopy existed
Yzöwl Posted July 13, 2005 Posted July 13, 2005 You've just looked up the xcopy command and decided not to use that instead of MD and COPYecho d|xcopy "C:\Install\file.dat" "C:\1\2\3" /ihq >nulAll should be one line.
Grake Posted July 13, 2005 Author Posted July 13, 2005 thank you. I googled, but I only knew copy to copy, not create folders and copy at the same time.anyways, thnx
Thauzar Posted July 13, 2005 Posted July 13, 2005 to copy entire directory with subdirectories and everything without having to MD anything, I used xcopy "path" "path" /S/E/Y
Swimming_Bird Posted July 13, 2005 Posted July 13, 2005 i _think_ robocopy will automatically make any folders it has to.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now