coping to the desktop.bat

Discussion in 'Software' started by hacker183, Jun 20, 2009.

  1. hacker183

    hacker183 Private E-2

    I'm trying to copy a file from the server to "this sys" (its a FQA for after repair of a sys, so lots of different ones come and go). So far I have
    Code:
    @echo off
    copy \\Server\info\here\Reinstall_Frequently_Asked_Question.pdf C:\Documents and Settings\Owner\Desktop
    Pause
    
    And I get "Syntax of the command is incorrect" I think its the spaces in "Documents and Settings". I can get it to copy to any place but "Documents and Settings"

    Is there any why around this?

    P.S.
    this is just a small batch file

    Thanks a lot,
    Hacker183
     
  2. MutD

    MutD Specialist

    Put double quotes ("") around the entire file name and path.
     
  3. hacker183

    hacker183 Private E-2

    omg, :-o I knew that, this was a test! ya that it a test..... And you passed. GRATS!


    Thank you MutD for the super fast reply.
     
  4. MutD

    MutD Specialist

    Haha, no problem :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds