Skip to main content
10 events
when toggle format what by license comment
Feb 28, 2015 at 17:31 comment added gogoud ok so a way of achieving this would be: 1. use a vbscript to start Word, wait for say 10 seconds then rename the folder, and 2. within Word create a different 'exit' button e.g. on the quick toolbar, and this button would run a VBA macro which renames the folder back to its original name and then quits Word. Quite messy but would this achieve what you need?
Feb 28, 2015 at 17:13 comment added hsawires it is hard to achieve and it is hard to explain ... Let's say its a shared folder having the same content can not be accessed with its real name for two users. I mean it must be a certain name for a user and another name for the other user ... shortcut didnt work.
Feb 28, 2015 at 16:52 comment added gogoud absolutely I just used notepad because everyone using Windows has it and as it happens I don't have Word on the machine I am writing this from... I still don't understand why the order of renaming and starting/ending the program is so important to you? i.e. why you want to start the program, then do the folder rename, and then rename the folder back before you close the program. Seems a strange requirement as well as a hard one to meet?
Feb 28, 2015 at 16:50 comment added hsawires notepad is an example.
Feb 28, 2015 at 16:47 history edited gogoud CC BY-SA 3.0
explain that you need to run this code...
Feb 28, 2015 at 16:45 comment added gogoud Not sure why you are trying to achieve this? Notepad (which is a very small program) should load very quickly anyway - Word might take longer of course. It would be easy to start Notepad or Word running and then rename the folder, but the problem comes then with telling when you exit the program to rename the folder back to its original name, I can think of ways to do it but none that are easy and why does it matter? Using START /WAIT gets round the problem simply but the initial folder rename has to precede it.
Feb 28, 2015 at 16:40 comment added hsawires the batch is easy to use and it is working so fine. ... but as I need is to wait the software notepad.exe to fully loaded before the folder is being loaded.
Feb 28, 2015 at 16:19 comment added hsawires how could i let that batch wait until the program is completely loaded and then rename. and how to rename the folder back exactly before I close the program.
Feb 28, 2015 at 16:18 comment added Oliver Friedrich Maybe you point out that the user has to start the batch script instead the desired programm.
Feb 28, 2015 at 16:03 history answered gogoud CC BY-SA 3.0