[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Windows Cmd Prompt How to make two actions happen

Posted on 2009-02-11
1
Medium Priority
?
286 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:plusone3055
1 Comment
 
LVL 19

Accepted Solution

by:
lamaslany earned 2000 total points
ID: 23613884
&&
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Access 2003 or later To MySQL Migration Project Hello All, this is my second article in the category of MS-OFFICE Automation. In internet I am not able to find any comprehensive resource on the Migration of MS Access back-end to MySQL so I fin…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question