Jump to content

kcorbo

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About kcorbo

kcorbo's Achievements

0

Reputation

  1. Thanks MHz. I just started using Autoit and the syntax is killing me compared to all other programming languages. I wasn't familiar with the Adlib functions. They seem really useful after seeing your example.
  2. Ahhhhh, thank you so much. I can't believe I overlooked that. It makes so much sense. Everything worked beautifully. What would be the format for this line then if I wanted to use @ProgramFilesDir instead of a static path? I tried: Run(@ComSpec & " /c " & @ProgramFilesDir & '"\nsclient\pNSClient.exe" /install', "", @SW_HIDE) ...but it came up with a parsing error during run time. Thanks again.
  3. I recently started using WPKG and have been trying to write a script in autoit to distribute through it. The script should run an installer via the command line, close a window that opens, then start the service associated with that install. It runs through the script without any failures but it's not actually executing the install on the command line. This has been driving me crazy and any help would be appreciated. MsgBox(0, "Notice", "Line 2") Run(@ComSpec & "/c" & '"C:\Program Files\nsclient\pNSClient.exe" /install', "", @SW_HIDE) Sleep(2000) MsgBox(0, "Notice", "Line 5") If WinExists("Information") Then WinActivate("Information") Else WinActivate("Error") EndIf Send("{ENTER}") Sleep(500) Run(@ComSpec & "/c" & 'NET START "NetSaint NT Agent"', "", @SW_HIDE) MsgBox(0, "Notice", "Service Started") The message boxes are just for error checking.
×
×
  • Create New...