Saraband Posted February 5, 2006 Share Posted February 5, 2006 too dumb to write a low priority .bat - tried, but it never works. so i tried the create shortcut method, but it failed too. can someone please tell me where i am going wrong with the below. THANKS!Please NOW in Microsoft Windows XP section, use [TAGS] in your topic's title.See rules.--Sonic Link to comment Share on other sites More sharing options...
WolfX2 Posted February 5, 2006 Share Posted February 5, 2006 (edited) too dumb to write a low priority .bat - tried, but it never works. so i tried the create shortcut method, but it failed too. can someone please tell me where i am going wrong with the below. THANKS!i really dont understand the question Edited February 5, 2006 by wolf74481 Link to comment Share on other sites More sharing options...
djnando Posted February 5, 2006 Share Posted February 5, 2006 (edited) check this out..... http://www.ss64.com/nt/start.htmlSTARTStart a specified program or command in a separate window.Syntax START "title" [/Dpath] [options] [command] [parameters]**** It must be the START command you are missing???Key WHAT to run path : Starting directory command : The NT Command, Batch file or executable program to run parameters : The parameters passed to the command HOW to run it /MIN : Minimized /MAX : Maximized /WAIT : Start application and wait for it to terminate /LOW : Use IDLE priority class /NORMAL : Use NORMAL priority class /HIGH : Use HIGH priority class /REALTIME : Use REALTIME priority class "title" : Text for the CMD window title. /B : Start application without creating a new window. In this case ^C will be ignored - leaving ^Break as the only way to interrupt the application /I : Ignore any changes to the current environment. Options for 16-bit WINDOWS programs only /SEPARATE Start in separate memory space (more robust) /SHARED Start in shared memory space (default) Edited February 6, 2006 by djnando Link to comment Share on other sites More sharing options...
Sonic Posted February 5, 2006 Share Posted February 5, 2006 djnando is right. You must "start" command from your bat to launch an apps with priority. Link to comment Share on other sites More sharing options...
Saraband Posted February 6, 2006 Author Share Posted February 6, 2006 START F:\Program Files\Maxthon\Maxthon.exe /LOWdoes nothing Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 6, 2006 Share Posted February 6, 2006 Have You put quotes around the pathSTART "%ProgramFiles%\Maxthon\Maxthon.exe" /LOW Link to comment Share on other sites More sharing options...
Saraband Posted February 6, 2006 Author Share Posted February 6, 2006 only command that launches Maxthon isStart /B "1" "F:\Program Files\Maxthon\Maxthon.exe" /LOWBUT, the process is still high Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 6, 2006 Share Posted February 6, 2006 Try this VBS script it will start the exe in LowThese are for setting it level Const Low = 64, Below_Normal = 16384This sets the path to the Program FilesPROGRAM_FILES = &H26&This is the varible with your path and exeFldrPath = FolderItem.Path & "\Maxthon\Maxthon.exe"Const Low = 64, Below_Normal = 16384, PROGRAM_FILES = &H26&strComputer = "." Dim Config, FldrPath, Folder, FolderItem, Process, Shell,Startup, WMIService Set Shell = CreateObject("Shell.Application") '''' OBJECT TO BE MADE Set Folder = Shell.Namespace(PROGRAM_FILES) '''' GET THE DRIVE LETTER AND LOCATION Set FolderItem = Folder.Self '''' THIS IS NOW THE PROGRAM FILES LOCATIO FldrPath = FolderItem.Path & "\Maxthon\Maxthon.exe" '''' ADD TO THE PATH THE FOLDER AND THE EXE Set WMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") '''' WMI Set Startup = WMIService.Get("Win32_ProcessStartup") '''' WHAT CLASS OF THE WMI BEING USED Set Config = Startup.SpawnInstance_ Config.PriorityClass = Low Set Process = GetObject("winmgmts:root\cimv2:Win32_Process") '''' LOWERS THE PROCESS Process.Create FldrPath, Null, Config, intProcessIDSave the above script as Lower_Maxthon.vbsThen for the targetStart Wscript.exe YOUR_PATH_TO\Lower_Maxthon.vbsIf you cannnot start target with a vbs script Save this as Start_Maxthon.cmd@echo Off Start Wscript.exe YOUR_PATH_TO\Lower_Maxthon.vbsNow Place In The TargetStart /B YOUR_PATH_TO\Start_Maxthon.cmd Link to comment Share on other sites More sharing options...
Saraband Posted February 6, 2006 Author Share Posted February 6, 2006 thanks for the help - but i finally figured it out. the /LOW goes in FRONT not BEHIND. who'd of thought ! not me !Start /LOW /B "1" "F:\Program Files\Maxthon\Maxthon.exe"then i make a shortcut to the above batch, run mimimized so cmd window doesnt show,done 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