Search found 4 matches
- 11 May 2013 04:20
- Forum: DOS Batch Forum
- Topic: Batch Script to start stopped service.
- Replies: 5
- Views: 5206
Re: Batch Script to start stopped service.
I put only two lines in process.txt: calc.exe,My Calculator notepad.exe,My Notepad I copy pasted your code as it is with echo on. below is the out put, seems not working.. C :\WINDOWS>P:\TCI-WORK\MyWork\test.bat C:\WINDOWS>set LOGFILE="P:\TCI-WORK\MyWork\log.txt" C:\WINDOWS>FOR /F "to...
- 10 May 2013 14:17
- Forum: DOS Batch Forum
- Topic: Batch Script to start stopped service.
- Replies: 5
- Views: 5206
Re: Batch Script to start stopped service.
Thanks I will try and let u know.
- 10 May 2013 12:13
- Forum: DOS Batch Forum
- Topic: Batch Script to start stopped service.
- Replies: 5
- Views: 5206
Re: Batch Script to start stopped service.
Thanks.. it worked in below way set process=%process%%%i set serviceName=%serviceName%%%j but now I am not sure why it is not able to call STARTPROCESS and command is not going to the function call. it gets stuck when it sees goto END. Please help ROCESSCHECK FOR /F "tokens=1,2 usebackq delims=...
- 10 May 2013 00:25
- Forum: DOS Batch Forum
- Topic: Batch Script to start stopped service.
- Replies: 5
- Views: 5206
Batch Script to start stopped service.
Hi All, I have a requirement where I have to write a dos script which checks stoped services and starts it. Though I am completely new in DOS script , I tried but my code is not working. here is the code. My logic is as below 1. process.txt is a file having the process and service name delimeted by ...