1.

Solve : copy file to other desktops in dos?

Answer» COPY Orders.mdb \\Chance\C\Documents and SETTINGS\Administrator\Desktop\orders1.mdb
copy orders.mdb \\Chance\%userprofile%\desktop\orders1.mdb

any idea why I can' t get this to work. I am trying to take a file and put it on afew others desktop .The format of your copy should be:

copy sourcefile \\computername\sharename\path

One potential problem is the %userprofile% variable. It will ALWAYS be resolved at the source computer not the target computer. It might be easier for the other users to pull the file off your machine INSTEAD of you pushing it out to theirs.

Hope this helps. I can put the file anywhere on other computers as long as i don't use the "Documents and Settings" it cuts eveything off past the Documents Well, if you're sure that will work just put the target in quotes.

copy sourcefile "\\computername\sharename\path"



Discussion

No Comment Found