'Batch File in Scheduled Task? How to run cmd script with attribute?
Problem I'm trying to solve:
- I want to create a Windows Scheduled Task to run a command line: 'SetEnvCmd PROD'
In the code below, I have the file path to the batch file, but I'm not sure how to add the attribute.
@echo off
cd /d "\\SERVERNAME\d$\cmd\SetEnvCmd.bat PROD"
Quesitons:
- Should this be done as a batch file?
- What should the syntax be in the batch file?
- What should I put in the 'Add arguments' field in the schedule task, the file path and the attritube?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

