Jump to content

Search the Community

Showing results for tags 'processclose'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • 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
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum
  • AutoIt

Calendars

  • Community Calendar

Found 1 result

  1. Guys, I really need your help. I am having a problem on the "processclose" on Windows 2008 R2. The code below is working great on Windows 7 but not on the Windows 2008 Basically, the extract.exe is open or run by cmd.exe, after certain period of time the extract.exe will exit (automatically), then after 5sec the cmd will exit, followed by a message " File extracted" which will close after 5sec.. $PID_Check=ProcessWaitClose("extract.exe"); Pause script execution until the given process does not exist if $PID_Check = 1 Then ;1= not exist Sleep(5000) ProcessClose("cmd.exe") Sleep(3000) MsgBox(0, "", "File extracted",5); message box will close after 5sec EndIf I can't figure out what the problem is, I tried on Window 7 but no problems. I'm on domain and I'm using the same username and I able to run the code.. Is there any other code I can use to close the cmd exe. if the cmd.exe did not close, on the next run it will not execute the extract.exe since the cmd.exe is still running. This is unattended run using task scheduler. Thank you very much.
×