# Search the Community

Showing results for tags 'runwait'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• General
• Announcements and Site News
• AutoIt v3
• AutoIt Help and Support
• AutoIt Technical Discussion
• AutoIt Example Scripts
• Scripting and Development
• Developer General Discussion
• Language Specific Discussion
• Operating System Deployment
• Windows Client
• Windows Server
• Office

### Categories

• AutoIt Team
• Beta
• MVP
• AutoIt
• Automation
• Databases and web connections
• Data compression
• Encryption and hash
• Games
• Hardware
• Information gathering
• Internet protocol suite
• Maths
• Media
• PDF
• Security
• Social Media and other Website API
• Windows
• Scripting and Development
• Operating System Deployment
• Windows Client
• Windows Server
• Office

• Forum FAQ
• AutoIt

### Calendars

• Community Calendar

• 0 Replies

• 0 Reviews

• 0 Views

Found 22 results

4. ## Execute VBS in a variable location?

I'm struggling to launch a VBS file via autoit using RunWait. Due to the nature of the deployment tool I am using for said script, I only know that the .vbs files will be in the same directory as my AutoIt-generated .exe, but not what that path will be. The path will look something like this: c:\programdata\vendor\lots\of\folders\randomnumber This is generated during deployment and I have no way of predicting the path - therefore, I am not sure how to call back to "same directory" in order to successfully launch the .vbs. This line is as close as I have gotten - this fires off

7. ## Looking for a clean way to capture RunWait output

Initial Problem I've written several scripts with the following sequence: Execute a program using Run w/stdout+stderr captured Typically processes all the files in one directory tree to populate a second tree Execute a second program (also with Run) to monitor the products of the first program and Display a progress bar (percentage of output files complete) Also monitor the first program's process and exit when it terminates The script then calls ProcessWaitClose (no timeout) on the first program's process and Checks the first p
8. ## How to pass command line arguments to a program(Python) from RunWait

I want to run a python script from autoit. I know we can do this with shellexecute or run , but this python script takes 3 cmd line arguments. How to pass them from autoit script? I tried many ways. Following solution also not working e.g. RunWait( 'fullpath\Python.exe Scriptpath\ReadLog.py  -f "file.log" -k "key" -e "errMsg" ') Found solution: RunWait( 'fullpath\Python.exe ReadLog.py -f "file.log" -k "key" -e "errMsg" ', 'Working_directory_path') PFB des

13. ## Java Uninstall via msiexec

Hello, I am ready to rip my hair out at this point I am not knew to autoit or scripting at all and that is why I am failing to understand what I am doing wrong here. When i run the command in the command prompt the command executes successfully as it should, but when i attempt to run this code in autoit nothing seems to happen. I am really failing to realize why, becuase I use Runwait to run command line parameters all the time. Can some one please help me out here and show me why this will not work for me. The script is uninstalling java and obviously i need to have this for many different
14. ## Dos command openfiles run from autoit result file is empty

Good Morning Everyone, I want to say thank you to everyone here - you guys are fantastic at what you do and we all appreciate your help and hard work. All of IT has benefited from your hard work and knowledge. So thank you. Edited...

18. ## runwait /c flag

Hello, For quite a long time i have been wondering something: I quite frequently use the command RunWait(@ComSpec & " /c " & "commandName") Now i'm wondering: what does the /c flag do? i apologize if the /c flag is not related to runwait as i put it like that in the title. Edit: Is it even a flag? thanks, dh Edit2: Never mind, I've found the answer: /C Carries out the command specified by the string and then terminates You can get all the cmd command line switches by typing cmd /? source: http://stackoverflow.com/questions/515309/what-does-cmd-c-mean I tho
19. ## Runwait is not working

HI, I trying to copy a file from Host operating system to Guest operating system via VMWare-Workstation. The command prompt appears but disappears in a split of a second. Not sure where am going wrong. Can someone help please? Here is the script that I have written... $VWRunEXEPath = "C:Program Files (x86)VMwareVMware Workstation>vmrun.exe"$GuestUserName = "agovada" $GuestPwd = "Welcome2world"$VMXPathOfTheOS = """C:VMImagesVista-64Vista x64.vmx""" $SourcePathOfVSE = """C:dataVSE RP4 RTW.zip"""$TargetPathOfVSE = """C:buildsrp4.zip""" RunWait(@ComSpec & " /c " & "'" &
20. ## Problem with exit codes

Hi, I have a problem in that one script runs successfully and gets to this line MsgBox(0x40,$UpdateID,"Successfully installed update " &$UpdateID) Exit(1) This script was started by another at this point: $InstallationResult = RunWait($ExeFileFullPath & " " & $InstallerParameters) ProcessWaitClose(StringReplace($FileName,"mmupdate","exe")) SplashOff() If $InstallationResult =$DesiredResult Then FileMove($ExeFileFullPath,$FileFullPath & ".done") LogWrite("Update succeeded") Else ; the update failed
21. ## command-prompt gives response but autoit doesn't

I have installed the amazon command-line interface (http://aws.amazon.com/cli/) and have it working in my cmd prompt dos window. For example, If I set the working directory to C:UsersAdministrator and run the command below to upload a file to the S3 service: aws s3 cp C:UsersAdministratorDesktopvpntimeout_text.txt s3:/clustertesting/vpntimeout_text.txt I get the response: upload: myfolder/file1.txt to s3:/mybucket/myfolder/file1.txt However, trying to replicate the same command in Autoit with : --------------------------------------------------------------------------
22. ## Problems with Win8 8520?

I was wondering if there are any developers out there who are having issues running AutoIT code on the latest revision of Win8? I recently (about 4 months ago) wrote an auto-installer that pulled tools from a server and ran an auto install of each tool on systems. This worked fine for revisions 8250, 8375 and 8400. However, when Win8 revision 8441 came around, I noticed some issues running some installers. Now with the newest revision, 8520, it seems that FileCopy, DirCopy, ShellExecute, ShellExecuteWait, Run, and RunWait are all either locking up, or just failing to run. The steps I t
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...