Can an ams app hande multiple CommandLineArgs and if so how would that be done??
Multiple CommandLineArgs ?
Collapse
X
-
Yes the _CommandLineArgs is a table passed to the application. Each item is an item in that table. You just need to be able to parse the table.TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
-
-
ok it is not much but hopefully it will give you the idea. Build the project to an exe and then you can drag and drop music files onto the exe. The code should do the rest.Last edited by TJ_Tigger; 01-24-2007, 05:12 PM.TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
yes. Dropping multiple items on the exe puts those items as commandline argument items. In essence when the exe launches because items were dropped on the exe it executes in a fashion line this "path\cmdlnargs.exe path\music.mp3 path\music.mp3 path\music.mp3 path\music.mp3 path\music.mp3". multiple command line args.
If you want to be more specific in what it is you are wanting to do with the command line one might then try to provide code that would also be more specific.
TiggTJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
ok that is a little clearer.
Will the arguments always be in that order and always present?
Are you wanting to use switches? (autorun.exe -u http://www.google.com -n name -s size)
What should the project do if the values are not present?TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Here is another example that looks for three arguments if they are available. They are differentiated by being a string starting with http, a number and someother string. Probably not the most sophisticated but it works.Attached FilesTJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
Comment