Results 1 to 5 of 5

Thread: Problem with Shell

  1. #1

    Thread Starter
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Thumbs up

    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

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Exclamation 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.
    ~seaweed

  4. #4
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    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.
    ~seaweed

  5. #5

    Thread Starter
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    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
  •  



Click Here to Expand Forum to Full Width