Autorun command-line Arguments?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • crewsr
    Forum Member
    • Jan 2006
    • 28

    Autorun command-line Arguments?

    Can I pass command-line arguments to autorun.exe? For example, my software installation may require installing MSI 3.1, after which the system needs to be restarted. I would like the autorun to resume the installation of my software after the restart/login without additional user intervention.

    I've tried (from command prompt) autorun.exe /? etc... to see if there would be any sort of page, but nothing happens except the autorun.exe starts.

    File.RunOnReboot(_SourceFolder"\\autorun.exe","name_of_script");

    This would continue the installation where it left off...
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    Yes look in the help file for _CommandLineArgs. You can also search the forums for that reference to find examples. The IR Project CodeViewer in my sig below contains an example on how to use this variable.

    Tigg
    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

    • crewsr
      Forum Member
      • Jan 2006
      • 28

      #3
      Very cool, thanks for the speedy response!

      Comment

      Working...
      X