Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to run batch file hidden in dos window

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-06-2011
Member
 
Join Date: Sep 2010
Posts: 75
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.

Reply With Quote
  #2  
Old 25-06-2011
Member
 
Join Date: Jun 2009
Posts: 1,518
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.
Reply With Quote
  #3  
Old 25-06-2011
Member
 
Join Date: Mar 2010
Posts: 204
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.
Reply With Quote
  #4  
Old 25-06-2011
Member
 
Join Date: Nov 2008
Posts: 1,259
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>
Reply With Quote
  #5  
Old 25-06-2011
Member
 
Join Date: May 2008
Posts: 913
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>
Reply With Quote
  #6  
Old 25-06-2011
Member
 
Join Date: Nov 2008
Posts: 1,221
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>
Reply With Quote
  #7  
Old 26-06-2011
Member
 
Join Date: Mar 2010
Posts: 306
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to run batch file hidden in dos window"
Thread Thread Starter Forum Replies Last Post
Shutdown window after running batch file Jaiwanti Operating Systems 4 13-12-2010 05:25 PM
How to exit a Windows MS-DOS window through a batch file. Juaquine Operating Systems 4 27-03-2010 05:31 PM
Several. Msc window from a batch / script call? Stephanatic Technology & Internet 2 26-11-2008 04:26 PM
Hidden Fax Window lernme Windows XP Support 4 09-11-2008 12:28 AM
Shell Icon Hidden Window...what is this? Mr. Lopez Windows XP Support 1 29-03-2006 08:17 PM


All times are GMT +5.5. The time now is 03:00 AM.