Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET

Automatically close the DOS Command Shell window (after last line)?

Home Forums Scripting DOS Command Shell Automatically close the DOS Command Shell window (after last line)?

Viewing 1 post (of 1 total)
  • Author
    Posts

  • dreivilo47
    Member
    #167233

    I have a batch file named “test.cmd”.

    The file contains 1 line:
    “C:Testtest.txt”

    The goal is to open the file “C:Testtest.txt”, that’s working.
    But the DOS Command Shell window remains open until I close the txt-file manually.

    So, my question is: How to automatically close the DOS Command Shell window after opening “C:Testtest.txt”?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: