Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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?

![]() |
![]() |
![]() |

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