|
-
Nov 7th, 2000, 05:07 PM
#1
Thread Starter
Lively Member
Lately I have been having many problems with the SHELL command. I want to load NetZero (nzStart.exe) with the shell command.
x = shell("c:\windows\netzero\nzStart.exe", 1)
It does not load the application.
If I put the path in Start/Run it loads it fine.
I can't get shell to load any .lnk file either.
I have tried using API calls aswell (winexec, ect...)
wuz up¿
Brandon
-
Nov 7th, 2000, 05:50 PM
#2
I don't think you assign the Shell() function to a variable you just say:
Code:
Shell("c:\windows\netzero\nzStart.exe", 1)
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 7th, 2000, 06:21 PM
#3
Frenzied Member
Shell returns a value
You can assign the return value of Shell to a variable with no problem. It returns the TaskId (a Long) of the program it executes.
That would not be the problem.
-
Nov 7th, 2000, 06:23 PM
#4
Frenzied Member
Do you get an error message?
Brandon, do you get an error message, or does nothing happen? What is the value of x after you call the Shell function?
It looks like your syntax is correct.
-
Nov 8th, 2000, 02:47 PM
#5
Thread Starter
Lively Member
more info
When I run it, some times it says it can't find the file, but I can copy that string and put it into Start/Run and it runs fine! I don't have any idea why it is not working. I have also tried creating processes and stuff with API to get it to start as well and it still doesn't work.
I am able to use shellexecute on a .lnk to the nzStart.exe and get it to run that way. That is probably what I am going to have to do.
The value of "x" changes all the time. Usually Negative... or it doesn't get a value. I know it is suppose to be over 32 if it is ran correctly. If you have any ideas I would appreciate them!
thanx,
Brandon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|