Batch file syntax file


  1. Posts : 1
    windows 7 premium
       #1

    Batch file syntax file


    I'm trying to create a batch file that will copy some excel files from my usb drive to my c: .

    this is what I'm putting in the command line.
    e:
    cd excelbak\exlbak13
    copy *.* c:\program files\microsoft office\office12\excel

    comment I get is invalid sytanx in command line...I'm thinking that it might be the Program files and the microsoft office that the command doesn't understand...

    can someone please shed some light on this..thanks
      My Computer


  2. Posts : 1,735
    Windows 7 enterprise 64 bit, Windows 7 Pro 64 bit ,Windows 8 64bit
       #2

    try this:
    Code:
    e:
    chdir excelbak\exlbak13
    copy *.* "c:\program files\microsoft office\office12\excel"
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:52.
Find Us