Jump to content

[Help] Low Priority Shortcut ?


Saraband

Recommended Posts

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!

max6wd.gif

Please NOW in Microsoft Windows XP section, use [TAGS] in your topic's title.

See rules.

--Sonic

Link to comment
Share on other sites


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 :wacko:

Edited by wolf74481
Link to comment
Share on other sites

check this out..... http://www.ss64.com/nt/start.html

START

Start 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 by djnando
Link to comment
Share on other sites

Try this VBS script it will start the exe in Low

These are for setting it level

Const Low = 64, Below_Normal = 16384

This sets the path to the Program Files

PROGRAM_FILES = &H26&

This is the varible with your path and exe

FldrPath = 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, intProcessID

Save the above script as Lower_Maxthon.vbs

Then for the target

Start Wscript.exe YOUR_PATH_TO\Lower_Maxthon.vbs
If you cannnot start target with a vbs script

Save this as Start_Maxthon.cmd

@echo Off Start Wscript.exe YOUR_PATH_TO\Lower_Maxthon.vbs

Now Place In The Target

Start /B YOUR_PATH_TO\Start_Maxthon.cmd
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...