Jump to content

Recommended Posts

Posted

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 :o:no:

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? :whistle:

thnx


Posted

first create your folders

MD C:\1\2\3\

then copy the file

copy c:\install\file.dat c:\1\2\3\file.dat

a quick search in google for dos copy would have answered your question. That's what I did this afternoon when I forgot xcopy existed :no::blushing:

Posted

You've just looked up the xcopy command and decided not to use that instead of MD and COPY

echo d|xcopy "C:\Install\file.dat" "C:\1\2\3" /ihq >nul

All should be one line.

Posted

thank you. I googled, but I only knew copy to copy, not create folders and copy at the same time.

anyways, thnx :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...