Command Line arguments and Scheduling 
Author Message
 Command Line arguments and Scheduling

I want my application to be kicked off by a scheduler at a given time once a
day.
There is a procedure that will control the entire process once it is
running.

How can I call this procedure when my app is started by the scheduler?
Do I use a command line argument?
Code samples appreciated.
 Thanks!
--
Joe Fallon



Wed, 19 Oct 2005 12:41:35 GMT  
 Command Line arguments and Scheduling
Joe,

    Dim strCmd() as string = Environment.GetCommandLineArgs

Ken
-------------

Quote:
> I want my application to be kicked off by a scheduler at a given time once
a
> day.
> There is a procedure that will control the entire process once it is
> running.

> How can I call this procedure when my app is started by the scheduler?
> Do I use a command line argument?
> Code samples appreciated.
>  Thanks!
> --
> Joe Fallon



Wed, 19 Oct 2005 18:18:08 GMT  
 Command Line arguments and Scheduling
Hello,


Quote:
> How can I call this procedure when my app is started
> by the scheduler?
> Do I use a command line argument?
> Code samples appreciated.

\\\
Public Module modMain
  Public Sub Main(ByVal astrCmdLineArgs() As String)
    Dim i As Integer
    For i = 0 To astrCmdLineArgs.Length - 1
      Console.WriteLine(astrCmdLineArgs(i))
    Next i
  End Sub
End Module
///

-- or --

\\\
Public Module modMain
  Public Sub Main()
    Dim i As Integer
    For i = 0 To Environment.GetCommandLineArgs().Length - 1
      Console.WriteLine(Environment.GetCommandLineArgs(i))
    Next i
  End Sub
End Module
///

Regards,
Herfried K. Wagner



Wed, 19 Oct 2005 18:41:03 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Command-Line arguments using Command()

2. "/decompile" command line argument

3. command line arguments for project files

4. Command Line arguments for Project

5. Project_Open and command Line arguments in MSP2k

6. Command Line Arguments

7. command line arguments

8. command line arguments

9. Command line argument

10. How to get Command Line argument?

11. VB Console App Command Line Arguments

12. Command Line Argument Parsing

 

 
Powered by phpBB® Forum Software