Jump to content

Traveler

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Traveler

  1. Hi Sure. The problem is, that I have different places on different PCs, so in advance, I do not know where the program is located. And the AutoIT should be started by the user, and it should run silently untill executed successfully. The program is always located on c:
  2. Hi Can someone maybe help me build an AutoIT, where I can start a program 'example.exe' and the directory is unknown ? If AutoIT can do it like this from c:\ 1. dir example.exe /s /x > c:\fil.txt This search for the program called example.exe and, if found, puts the path into a file called fil.txt. 2. find "c:\" /i fil.txt This shows the path where the program is located. 3. Start the program somehow ?? Hope you can help.
  3. Ahh, like this. I just run Aut2exe, and it's straight forward. It works. Thanks.
  4. If I just enter your new command in a new autoit.exe, then I'm told 'Error: unknown function name'. Maybe I misunderstood, and have to add your new string to your original suggestion ?
  5. Hi Is there an easy way, to change the program icon displayed on the desctop, to something else ? Thanks.
  6. Hi I do not know the location except c: . On my current PC it's c:Program Fileslotusnotesprogramname.exe. To Melba23, when I run your program I get the message 'Not going to run'.
  7. Hi Is it possible to call a program via a similar below command, where the actual location of the program is unknown ? I do not know the exact location of the program, because the program has been installed in different ways on different machines during the years. runWait(@ComSpec & ' /c ' & "programname.exe", @TempDir, @SW_HIDE)
  8. Hello All Thank you very much for your quick support. This works 100%. Just what I were looking for.
  9. Hi Thank you very much :-) This works ! Is there any way, to tell the user, that the update ran OK when it is finish ? Thanks.
  10. Hi I'm pretty new to this, and have a couple of questions, I hope you can answer. I have created this small program - it runs :-) So far so good. But I would like the program to be started, and then run in the background, so the user do not see the CMD commands entered. Any idea how to do this ? Also, if I want to check if each step is successfull before proceeding to the next command, then how to do this ? Here's the program: $answer = MsgBox(4, "AutoIt Example (English Only)", "Updating system clock.Do you want to proceed ?") If $answer = 7 Then MsgBox(0, "AutoIt", "OK. Good bye !") Exit EndIf run ("cmd") send("cnet stop w32time{ENTER}") sleep (5000) send("net time /setsntp:time.windows.com{ENTER}") sleep (5000) send("net start w32time{ENTER}") sleep (5000) send("exit{ENTER}")
×
×
  • Create New...