Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 arguments with .exe version of a program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
breeno3




PostPosted: Fri Apr 10, 2009 12:07 pm   Post subject: arguments with .exe version of a program

I am having trouble receiving command line arguments with the following program. The program has been converted into an executable.


put "Number of Args=", Sys.Nargs
put "The name of this program is : ", Sys.FetchArg (0)
for i : 1 .. Sys.Nargs
    
put "Argument ", i, " is ", Sys.FetchArg (i)
end for


When run in the Turing environment, the arguments show up and get printed. When run as an exe with
Args.exe "hello"
no arguments get sent. Is there a way to send arguments to an exe version of the program without having to open the arguments pop up window?
    
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: