Fredledingue Posted May 22, 2005 Share Posted May 22, 2005 I wrote some batch files, but I want them to run in the background (without dos-prompt window, even not minimized). The user doesn't need to inerfere with the script because it always does the same things. But its useless windows poping up in the taskbar are annoying and cause slow computers to scratch.thanks. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 22, 2005 Share Posted May 22, 2005 Ummm just send it to me and I will compile into an exe for you.I can make it run silently in the background with no sign it is running. Link to comment Share on other sites More sharing options...
jaclaz Posted May 23, 2005 Share Posted May 23, 2005 Well, there is this little tool too:http://www.commandline.co.uk/cmdow/or this vbs solution:http://www.jsifaq.com/SUBS/tip9200/rh9242.htmor this spawner:http://www.joeware.net/win/free/tools/quiet.htmjaclaz Link to comment Share on other sites More sharing options...
Fredledingue Posted May 23, 2005 Author Share Posted May 23, 2005 This is the batch file I want to run in the bkgrd.The batch file should be launched by a right-clic menu (that I add myself with ContextEdit) on selected files in Explorer.The goal is to launch only one instance of a script or program for the whole selection instead of one instance for each selected file.All the paths are writen in a list, then the script read this list and perform accordingly.The trick used is deleting a nul file, an operation that obviousely only one instance of the batch file can do (a file can be deleted only once). Then if the file already doesn't exist, it skips the script launch command...and only apend the path to the list.Later, the script re-create the nul file and erase the list.I did a similar script in VBS but it was disastrous on a slow computer. In BAT it works better albeit with some errors (some selected files are not added to the list).And there are also these invasive taskbar tabs... that certainely waist the rarefied resources of the old computer. x.nul is the nul filetmp.txt is the list fileess2.vbs is the script to be launched.@echo offif not exist C:\Progra~1\Bat&vbs\x.nul goto writelistdel C:\Progra~1\Bat&vbs\x.nulcd..cd \WINDOWSC:\WINDOWS\WScript.exe "C:\Progra~1\Bat&vbs\ess2.vbs":writelistecho %1 >> C:\Progra~1\Bat&vbs\tmp.txtexit Link to comment Share on other sites More sharing options...
Fredledingue Posted May 23, 2005 Author Share Posted May 23, 2005 and it must run on W98 so NT/2000/XP-only solution won't help... Link to comment Share on other sites More sharing options...
Fredledingue Posted May 24, 2005 Author Share Posted May 24, 2005 Ummm just send it to me and I will compile into an exe for you.I can make it run silently in the background with no sign it is running.<{POST_SNAPBACK}>Thanks, I'v got the exe. I'll try tomorow, I'm too tired tonight... Link to comment Share on other sites More sharing options...
Fredledingue Posted June 5, 2005 Author Share Posted June 5, 2005 kelsenellenelvian,Thanks for the exe! It works! Thought I coudn't try it on the slow computer.But I will need to know how you did because I will need to do a version for each vbs.Also why 150 kb! Did you add your personal flash screen or something? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now