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 \\\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

LVL 22
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.