Computing.Net > Forums > Programming > Acer Aspire 5100

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Acer Aspire 5100

Reply to Message Icon

Name: chrisyunke
Date: May 10, 2008 at 15:53:46 Pacific
OS: Vista SP1
CPU/Ram: 1G
Product: Acer Aspire 5100
Comment:

Can anyone make me a batch code that will execute a command when the command prompt is closed, something like a 'on-close' command or something, i tried anything i know of. please help.



Sponsored Link
Ads by Google

Response Number 1
Name: chrisyunke
Date: May 11, 2008 at 19:06:12 Pacific
Reply:

is there even a way to do this?


0

Response Number 2
Name: klint
Date: May 12, 2008 at 03:57:55 Pacific
Reply:

I don't think it's possible. However, you may be able to work around this. For example, you could create a new shortcut that you click on, instead of the normal shortcut that runs cmd.exe. In your new shortcut, run a batch file whose first line is to run cmd.exe. After the user exits the command line, by typing EXIT, your batch file will continue. Unfortunately, it won't work if the user exits by clicking the [X] icon that closes the window.


0

Response Number 3
Name: chrisyunke
Date: May 12, 2008 at 09:34:42 Pacific
Reply:

ok. Thanks.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Acer Aspire 5100

startup batch code www.computing.net/answers/programming/startup-batch-code/16482.html

batch code help. www.computing.net/answers/programming/batch-code-help/16509.html

batch file - Log code www.computing.net/answers/programming/batch-file-log-code/16556.html