Thread: Give me an idea
View Single Post
  #2 (permalink)  
Old 07-03-2007, 07:20 AM
LineCutter's Avatar
LineCutter LineCutter is offline
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 117
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Read the command line arguments & then set up the exe to behave differently depending on the value passed. You'd need two shortcut files though.

From the manual:
Quote:
Reading the command line arguments is done using a special built-in array named args.
Use ArrayLen to find the number of arguments available.
In order to simulate command line arguments from the IDE you can use Tools - Command line arguments.


Example:
Sub Globals


End Sub
Sub App_Start
For i = 0 To ArrayLen(args())-1
Msgbox(args(i))
Next
End Sub
Reply With Quote