Copying to desktop

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

What is the syntax of copy command to copy a file to current user's desktop?

Thanks

Regards
 
John said:
Hi

What is the syntax of copy command to copy a file to current user's
desktop?

Thanks

Regards

From a Command Prompt?
copy "c:\Some Folder\Some File.ext" "%UserName%\Desktop"
 
John said:
Hi

What is the syntax of copy command to copy a file to current user's
desktop?

Just drag it to the desktop and drop it it there.
 
Sorry, you need to work out for yourself the correct folder and file name
you wish to copy. You can see your machine - we can't.
 
John said:
The paths are

C:\Documents and Settings\<username>\Desktop

Regards

Oops, I slipped there. What I actually wanted to write was this:

copy "c:\Some Folder\Some File.ext" "%UserProfile%\Desktop"
instead of
copy "c:\Some Folder\Some File.ext" "%UserName%\Desktop"
 
John said:
Need a command please as it needs to go into batch file.

Ah! OK then, how about:

copy [source file] "c:\documents and settings\[account name]\desktop"
[switches as required - type "copy /?" in a command window for details]

add the /b if it is a binary file (i.e. not pure text).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top