Link to home
Start Free TrialLog in
Avatar of plusone3055
plusone3055Flag for United States of America

asked on

Windows Cmd Prompt How to make two actions happen

IM and trying to write a simple syntax via windows cmd prompt to perform two actions....

C:\Program Files\Microsoft Office\Office>FOR /R \\cinhnf05.tsg.ge.com\ec_dev_sdaviationedrb\DOC_Files\50000 %G IN (*.doc) DO set filePath=%G and excel.exe /r Test_AutoRun4.xls

The for-loop works great, the syntax is perfect except I want to DO two things.  I don't know how to make the command window see two commands after the DO.  "and" did not work for me.

Please Help... Thanks

ASKER CERTIFIED SOLUTION
Avatar of lamaslany
lamaslany
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial