J John Nov 25, 2008 #1 Hi What is the syntax of copy command to copy a file to current user's desktop? Thanks Regards
P Pegasus \(MVP\) Nov 25, 2008 #2 John said: Hi What is the syntax of copy command to copy a file to current user's desktop? Thanks Regards Click to expand... 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? Thanks Regards Click to expand... From a Command Prompt? copy "c:\Some Folder\Some File.ext" "%UserName%\Desktop"
M M.I.5¾ Nov 25, 2008 #4 John said: Hi What is the syntax of copy command to copy a file to current user's desktop? Click to expand... Just drag it to the desktop and drop it it there.
John said: Hi What is the syntax of copy command to copy a file to current user's desktop? Click to expand... Just drag it to the desktop and drop it it there.
P Pegasus \(MVP\) Nov 25, 2008 #6 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.
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.
P Pegasus \(MVP\) Nov 25, 2008 #8 John said: The paths are C:\Documents and Settings\<username>\Desktop Regards Click to expand... 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: The paths are C:\Documents and Settings\<username>\Desktop Regards Click to expand... 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"
M M.I.5¾ Nov 26, 2008 #9 John said: Need a command please as it needs to go into batch file. Click to expand... 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).
John said: Need a command please as it needs to go into batch file. Click to expand... 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).