Search found 10 matches
- 27 Sep 2012 13:38
- Forum: DOS Batch Forum
- Topic: How to set IP information as variables?
- Replies: 1
- Views: 2492
How to set IP information as variables?
Hello everybody, I am working on a batch file that I'd like to use at work. I'm in the early stage of building this batch file, which will allow me to send to a end user and upon running it, the program will ask them: If they need a static addres or dynamic and if it is static, it will ask for a clu...
- 17 Jan 2012 13:35
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
Did you read this article. m yes I have here is what I got from it: -To apply this hotfix, you must be running Windows Server 2008 or Windows Vista SP1. I am running windows 7 pro/enterprise -To work around this problem, manually delete the quotation marks from the "Add arguments" section...
- 16 Jan 2012 15:34
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
I tried to run the task as the basic command: schtasks /create /sc DAILY /ST 16:33 /SD 01/05/2012 /tn "Daily Reboot" /tr "C:\Windows\System32\shutdown.exe -r -f t 00" /ru SYSTEM /RL HIGHEST /f pause and all I get from task scheduler is 0x1 and it thinks the batch ran. I am guessi...
- 16 Jan 2012 14:24
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
Here is somewhat of an update. Well my code is still almost the same but I had to remove the skip=1 line. Now, when I run the batch file, it will remove the previous tasks that use shutdown.exe and put in the new one...all in one shot. Now here is something werid...the pc won't reboot anymore. I run...
- 11 Jan 2012 17:09
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
I finally understood what you meant by "OverWrite". It wasn't making any sense to me until you mentioned the /F switch with the delete option. I can see how you would think you are overwriting a task but you really are not. You are deleting an existing task and creating a whole new one. Y...
- 11 Jan 2012 15:32
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
Well I figured out how to do the overwrite...I used /F to force the process in the task: Here is the code: for /f "skip=1 tokens=2 delims=," %%F in ('schtasks /query /v /FO CSV ^|Findstr /I "shutdown.exe"') do schtasks /delete /f /TN %%F schtasks /create /sc DAILY /ST 13:34 /SD 0...
- 11 Jan 2012 12:47
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
Thank you Squashman for the help! I really appreciate it. I will probably need to put the statement into a loop...but before that is there a command I can use to automatically have the computer press Y-yes for overwrite ability? Right now, if I run the batch script it will create the scheduled task....
- 11 Jan 2012 07:12
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
It would help to post the code you are using if you changed the original code I gave you. sorry about the delay, spilt milk on my laptop last night so didnt have access to the online world lol wel here is what I have in the batch file. for /f "skip=1 tokens=2 delims=," %%F in ('schtasks /...
- 10 Jan 2012 15:05
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
Re: schtasks - checking for shutdown.exe and overwrite
I believe this would work. for /f "skip=1 tokens=2 delims=," %%F in ('schtasks /query /v /FO CSV ^|findstr "shutdown.exe"') do schtasks /delete /TN %%F Thank you, I've been trying to get it to work most of the day and I can't seem to get it to overwrite the current task (Ex: shu...
- 09 Jan 2012 14:09
- Forum: DOS Batch Forum
- Topic: schtasks - checking for shutdown.exe and overwrite
- Replies: 15
- Views: 20443
schtasks - checking for shutdown.exe and overwrite
Hey everybody, here is what I have so far: schtasks /create /sc DAILY /ST 13:34 /SD 01/05/2012 /tn "Daily Reboot" /tr "C:\Windows\System32\shutdown.exe -r -f t 00" /ru System pause This batch file when run, creates a daily scheduled task for the computer to reboot at a specific t...