Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch file syntax file


03 Apr 2013   #1

windows 7 premium
 
 
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 System SpecsSystem Spec
.

04 Apr 2013   #2

Microsoft Community Contributor Award Recipient

Windows 7 enterprise 64 bit, Windows 7 Pro 64 bit ,Windows 8 64bit
 
 

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

 Batch file syntax file




Thread Tools




Our Sites

Site Links

About Us

Find 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 08:56 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33