Computing.Net > Forums > Windows 2000 > VB6 Shell changing priority

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6 Shell changing priority

Reply to Message Icon

Name: ectech
Date: December 15, 2003 at 10:22:28 Pacific
OS: Win2K
CPU/Ram: P4
Comment:

I assemble a shell command inside a VB6 application. But I want to decrease the priority of the thread because the processing time is long.

Example: ReturnValue=Shell("start /belownormal n:\path\app.bat parameter1 parameter2", 3)

The Shell command thinks the 'start /belownormal' is a file and can't find it. (surprise, surprise!).

But using that same line outside of VB, as in Start>Run>cmd.exe followed by manual typing the "start ........" runs perfectly.

Apparently the Shell command does not call cmd.exe and pass the string to it.

Is there any way I can call this command line with decreased priority from within VB6?



Sponsored Link
Ads by Google

Response Number 1
Name: seawatch
Date: December 15, 2003 at 13:42:07 Pacific
Reply:

You need the programming forum on the left <----


Larry


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: VB6 Shell changing priority

changing icons for windows 2000 www.computing.net/answers/windows-2000/changing-icons-for-windows-2000/12296.html

can't login www.computing.net/answers/windows-2000/cant-login/49340.html

Running a script at system startup www.computing.net/answers/windows-2000/running-a-script-at-system-startup/61324.html