TSAppInject is a command-line utility to launch an application with an assigned CPU priority during the running of that program. Using TSAppInject, an application can be executed with a designated CPU priority, meaning that the desired application can be run in a Microsoft Windows environment with a higher or lower level of CPU prioritisation. This allows it to be processed more quickly or alternatively, more slowly than applications launched in a regular fashion. The status of the CPU priority setting remains until the application is closed. TSAppInject, with its parameters, can exist as a shortcut on the desktop, can be run in a script, or published as a single application. TSAppInject will work as a Seamless Published application in a Citrix environment or can be called from a Terminal Server client. Usage: TSAppInject [[PATH][Application]] [CPU_Priority] [/?] PATH - Path to the Application Application - Application Executable CPU_Priority - Level of CPU prioritisation to assign to the application. The following CPU Priority parameters may be applied: REALTIME - Process that has the highest possible priority. The threads of the process pre-empt the threads of all other processes, including operating system processes performing important tasks. CAUTION: Areal-time process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive. HIGHEST - Process that performs time-critical tasks that must be executed immediately. The threads of the process pre-empt the threads of normal or idle priority class processes. Use extreme care when using the high-priority class, because a high-priority class application can use nearly all available CPU time. HIGH - Process that has priority above NORMAL but below HIGHEST. NORMAL - Process with no special scheduling needs. LOWEST - Process that has priority below NORMAL_PRIORITY_CLASS. /? - Show this help file TSAppInject without parameters will display this help file. NOTE: If a PATH or Application does not exist, TSAppInject will terminate. If no CPU_Priority parameter is included, the application will run in NORMAL priority. E.G. TSAppInject "c:\Program Files\Office11\EXCEL.EXE" /HIGH This command will launch MS Excel with HIGH CPU priority during execution. E.G. TSAppInject "c:\windows\system32\notepad.exe h:\MyTextfile.txt" /HIGHEST This command will launch h:\MyTextfile.txt in notepad with HIGHEST CPU priority during execution. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Although written for Terminal Server and Citrix environments, this application will function on non-TS/Citrix workstations and servers. This application has been tested on the following platforms: Windows 2008 Server Windows 2003 Server SP1 Windows 2003 Server SP1 w/ Citrix PS 4.0/ XA 5.0 Windows 2003 Server SP1 (Terminal Server Application Mode) Windows 2000 Server SP4 Windows 2000 Server SP4 w/ Citrix MF XP Windows 2000 Server SP4 (Terminal Server Application Mode) Windows 2000 Server SP4 w/ Citrix MF 1.8 Windows XP Professional (domain member) Windows Vista (domain member) The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that TSAppInject is free of any bugs or errors, however in no way is TSAppInject to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in TSAppInject. IN NO EVENT WILL Ctrl-Alt-Del IT Consultancy BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.