PC Review


Reply
Thread Tools Rate Thread

Copying to desktop

 
 
John
Guest
Posts: n/a
 
      25th Nov 2008
Hi

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

Thanks

Regards


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Nov 2008

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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"


 
Reply With Quote
 
John
Guest
Posts: n/a
 
      25th Nov 2008
getting a 'The system cannot find the file specified error'.

any ideas?

"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "John" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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"
>



 
Reply With Quote
 
M.I.5¾
Guest
Posts: n/a
 
      25th Nov 2008

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.


 
Reply With Quote
 
John
Guest
Posts: n/a
 
      25th Nov 2008
Need a command please as it needs to go into batch file.

Thanks

Regards

"M.I.5¾" <(E-Mail Removed)_SPAM.co.uk> wrote in message
news:492bec78$(E-Mail Removed)...
>
> "John" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Nov 2008
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> getting a 'The system cannot find the file specified error'.
>
> any ideas?
>
> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> "John" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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"
>>

>
>



 
Reply With Quote
 
John
Guest
Posts: n/a
 
      25th Nov 2008
The paths are

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

Regards

"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> getting a 'The system cannot find the file specified error'.
>>
>> any ideas?
>>
>> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>> "John" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> 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"
>>>

>>
>>

>
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Nov 2008

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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"


 
Reply With Quote
 
M.I.5¾
Guest
Posts: n/a
 
      26th Nov 2008

"John" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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).

> Thanks
>
> Regards
>
> "M.I.5¾" <(E-Mail Removed)_SPAM.co.uk> wrote in message
> news:492bec78$(E-Mail Removed)...
>>
>> "John" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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.
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying files from a desktop to PDA via the PDA sam.cartner Microsoft Dot NET Compact Framework 4 9th Mar 2009 04:00 PM
Copying from folder to desktop =?Utf-8?B?QW5uaWU=?= Microsoft Outlook Discussion 1 16th Nov 2006 10:52 AM
Copying desktop Layout =?Utf-8?B?U2NvdHQ=?= Windows XP Security 3 7th Nov 2004 09:45 PM
Copying files from a desktop =?Utf-8?B?R0c=?= Windows XP Networking 1 25th May 2004 03:08 PM
pictures copying to desktop vanjoedan Windows XP Photos 0 14th Dec 2003 08:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 AM.