Results 1 to 4 of 4

Thread: AT with Parameter

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    AT with Parameter

    Code:
    Shell "at " & TimeAtLaunch & " /interactive " & Chr(34) & App.Path & "\" & App.EXEName & Chr(34) & " -Open", vbMinimizedNoFocus
    For some reason, when the time comes, scheduler doesn't launch this.
    I check what is actually put inside scheduler and it is something along this effect:

    1 Today 5:43 AM AM /interactive "C:\Documents and Settings\Username\Desktop\System Account" -Open

    After the time come it places "Error" before the ID.

    So i checked the system logs and they said "File Not Found" when trying to start it.

    It doesn't like the -Open parameter... but the program needs to be started with a parameter... how can i use this command and have this program run this parameter. I've tried heaps of different ways, but for some reason it just doesn't work.
    Last edited by Slyke; Nov 19th, 2007 at 03:12 AM.

  2. #2

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: AT with Parameter

    Quote Originally Posted by RhinoBull
    First you supply the exe full path/name and then you provide list of necessary arguments.
    In the code you've presented it appears the other way arround.
    Really? I don't understand? I did put the path and then the exe name, then the parameters... but even if i put the " after the exe name and before the parameter, it will still place the parameter inside the ".

    Can you give me an example please?

  4. #4

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