February 5, 200620 yr 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
February 5, 200620 yr 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, 200620 yr by wolf74481
February 5, 200620 yr 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, 200620 yr by djnando
February 5, 200620 yr djnando is right. You must "start" command from your bat to launch an apps with priority.
February 6, 200620 yr Have You put quotes around the pathSTART "%ProgramFiles%\Maxthon\Maxthon.exe" /LOW
February 6, 200620 yr Author only command that launches Maxthon isStart /B "1" "F:\Program Files\Maxthon\Maxthon.exe" /LOWBUT, the process is still high
February 6, 200620 yr 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
February 6, 200620 yr Author 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
Create an account or sign in to comment