How to run batch file hidden in dos window
Hi, I’m using windows xp, I use to play games for long hours. So I want batch file running frequently which kill at least two processes and then they restart it. I want this batch file to run hidden so that I don’t go to desktop again and again while playing the games. Can anyone guide me to how to do this? I had made a bit search on internet but I dint cum up with anything and whatever I’m getting is not working. Any help regarding to this will be extremely appreciated.
Re: How to run batch file hidden in dos window
Even I was trying to do the same and I had tried many things. My problem is whenever I’m trying to check the task killer it shows some kind of feedback or a kind of report. And whenever I try to open that it redirects me to cmd window which say Succuss bla bla killed guiminer which is not running and I always move to desktop. So does anyone know what may be the cause of the problem? Please guide me for the same.
Re: How to run batch file hidden in dos window
Whenever I try to check my task killer and click on report it says failed bla bla guiminer is not working.
Code:
< Set WshShell = CreateObject("WScript.Shell")> <WshShell.Run chr(34) & "G:\Users\Sebz4n_GAME_OS2\Desktop\Restart> <GUIMiner.bat" & Chr(34), 0>
<Set WshShell = Nothing> this is my .vbs script in the batch file which is running hidden and even this which is not running hidden
<start TASKKILL /F /IM "guiminer.exe"><start TASKKILL /F /IM "poclbm.exe">
<PING 1.1.1.1 -n 1 -w 1000 > NUL> <start /d "G:\Users\Sebz4n_GAME_OS2\Desktop\GUIMiner\" miner.lnk>
is there any way to run this batch file hidden.
Re: How to run batch file hidden in dos window
When I’m click on the report file it say that PID not found for the .exe file even that file is working. How can I get rid from this problem? I had tried it to the test file but that is also dint help me out. The code which I had used is
Code:
<start TASKKILL /F /IM "guiminer.exe" > testlog1.txt>
<start TASKKILL /F /IM "poclbm.exe" > testlog1.txt>
<PING 1.1.1.1 -n 1 -w 1000 > NUL>
<start /d "G:\Users\Sebz4n_GAME_OS2\Desktop\GUIMiner\" miner.lnk>
Re: How to run batch file hidden in dos window
It’s not a big issue I just love to work in batch file. I want to ask have you run that batch file as an administrator. Just cross check your batch file and in task killer try to put the pause command which may look like this
Code:
<Start TASKKILL /F /IM "guiminer.exe">
pause
<start TASKKILL /F /IM "poclbm.exe">
pause
<PING 1.1.1.1 -n 1 -w 1000 > NUL>
<start /d "G:\Users\Sebz4n_GAME_OS2\Desktop\GUIMiner\" miner.lnk>
Re: How to run batch file hidden in dos window
Even I was facing the same issue with the batch file and the pause code really helps me out and now everything is working fine. I had done a bit search regarding this and had come up with few things. If pause code doesn’t work for you then you may try this code
Code:
<TASKKILL /F /IM "guiminer.exe" > NUL
<TASKKILL /F /IM "poclbm.exe" >NUL
<PING 1.1.1.1 -n 1 -w 1000 > NUL
<start /d "G:\Users\Sebz4n_GAME_OS2\Desktop\GUIMiner\" miner.lnk>
Re: How to run batch file hidden in dos window
I don’t know much about the DOS but I had done with the Microsoft window now I’m able to run the batch file without interrupting any of my process. You can do this by using the command prompt. You can use the command for batch file to which do not affect any user operation which is going on. For myfile.bat which is an batch file you just need to use this command start /min myfile.bat in command prompt and you can search for other option at Microsoft site.