Timeline for how to make a batch file to rename a folder when I start and close a program?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 28, 2015 at 18:06 | vote | accept | hsawires | ||
Feb 28, 2015 at 18:01 | comment | added | krowe | No. It copies the folder before it even runs word. You have all of the data. Now you just need to understand your own problem well enough to solve it. This does everything you need. At any point you have two copies: one working copy and one from before you loaded word. It replace the original folder after you close word. Aside from this, your question can only be best solved from outside of a batch file (no matter what it is that you really want) IMHO. | |
Feb 28, 2015 at 17:54 | comment | added | hsawires |
thank you so much ... but it didn't work .. it still wait the program to close then copy the folder. ... but it could work if the batch run without waiting the program to close. something different then CALL and SLEEP for a while then execute the rest of the batch.( don't have to wait the program to close) maybe your first solution work either.
|
|
Feb 28, 2015 at 17:49 | history | edited | krowe | CC BY-SA 3.0 |
added 138 characters in body
|
Feb 28, 2015 at 17:42 | history | edited | krowe | CC BY-SA 3.0 |
added 232 characters in body
|
Feb 28, 2015 at 17:33 | history | edited | krowe | CC BY-SA 3.0 |
added 326 characters in body
|
Feb 28, 2015 at 16:50 | comment | added | hsawires | please check my edited question | |
Feb 28, 2015 at 16:34 | comment | added | hsawires | the batch is working so fine -Thank you- ... but here is my need .. the winword.exe is running so fast .. I need to rename the folder after the winword.exe is fully loaded and the time I choose to close winword.exe it must rename the folder back before it is fully closed. | |
Feb 28, 2015 at 16:03 | history | edited | krowe | CC BY-SA 3.0 |
added 110 characters in body
|
Feb 28, 2015 at 15:56 | history | answered | krowe | CC BY-SA 3.0 |