I would like to have my bat file delete itself after executing
I would like to have my bat file delete itself after executing
Last edited by b_rianv; 08-20-2019 at 12:58 PM.
Administrative Note:
We would very much like to help you with your query, however the thread title does not really convey what your request is about.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Wrong forum? Don't think question has anything to do with Excel...
At any rate, depending on your need, you can do one of the following.
1. If you want cmd prompt displayed and kept after execution.
2. If not just remove cmd /k![]()
Please Login or Register to view this content.
These should go at very end of *.bat file.
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
― Robert A. Heinlein
I wonder how many members even know how to code in DOS, let alone what a BAT file is?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
@ck76 Thank you for answering back your input was knid but it didn't work.
![]()
Please Login or Register to view this content.
What does this have to do with Excel?
Replace...
With just...![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
@CK76
Thank you so much for taking the time to help out as it is working now
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks