Jump to content

Search the Community

Showing results for tags 'windows 7 batch bat'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 1 result

  1. Hi all I am new (today) to machine script. This is something I put together and will be trying tomorrow. cd /d "C:\path" Start Filename.bat cd /d "H:\path" Start Program.exe :CHECK ping -n 10 localhost 1> NUL TASKLIST /v /fi "IMAGENAME eq program.exe" 2>&1 > NUL IF ERRORLEVEL 1 GOTO CHECK taskkill /f /im cmd.exe /t If all goes well, filename.bat will run. Then a program will run. CMD will then check for program.exe until not found (exited), then close CMD. In this case program.exe does not work with start /wait I am wondering if the check will slow down my machine if run for a few hours. I am using Windows 7 x64, SSD, 16GB RAM and AMD 8350. Considering inserting a small timeout, but seems silly. Is there a way to slow down the check, but still close immediately if program.exe is closed?
×
×
  • Create New...