im using a variable for the path as i use the path a few times prior to this in my script:
SET Path=E:\Directory\Files
There are no spaces in the path.
Il see if schtasks can do whats required. Thanks!
Search found 3 matches
- 02 May 2012 10:22
- Forum: DOS Batch Forum
- Topic: scheduling a Batch file with parameters using the AT command
- Replies: 6
- Views: 5854
- 02 May 2012 09:40
- Forum: DOS Batch Forum
- Topic: scheduling a Batch file with parameters using the AT command
- Replies: 6
- Views: 5854
scheduling a Batch file with parameters using the AT command
I have a batch file that takes a filename and location and renames the file with todays date and current time. I need to schedule this to run at a specified time I tried the following but no success: C:\Windows\System32\at.exe 16:50 c:\windows\system32\cmd.exe /c %Path%\Rename_File.bat %Filename% %F...
- 23 Apr 2012 10:00
- Forum: DOS Batch Forum
- Topic: Cannot Exit exactly when i want to
- Replies: 4
- Views: 5377
Cannot Exit exactly when i want to
Below is a simplified version of my problem. Issue: In function1, i want to be able to exit the current call of the function if a variable has an incorrect value. The problem is that even on calling my End function, the program still passes through the entire code once more before exiting. @echo off...