|
Answer» Hi,
I'm trying to display a the contents of a folder in a window. When I close the folder I wish the next folder listed in the batch to OPEN etc and so on through the list. At the moment:
start R:\foldername1 start R:\foldername2 start R:\foldername3
this opens all folders at once...
Any help appreciated.
THANKS mamock try start /wait "" "foldername" Thanks for response.
I have tried this and they still open together.Does this workaround suffice for you?
If not then EXPLAIN what you are doing and someone might have an idea.
Code: [SELECT]@echo off start "" R:\foldername1 pause start "" R:\foldername2 pause start "" R:\foldername3 I did a bit of research. Put simply, you can't do this with Explorer.exe, at least not from batch. Thanks for all the help.
I just wanted to open a list of folders one at a time without having to use keyboard input to move on.
'pause' will have to do for now...
CheersIf this is your own computer or if you are allowed to run a free Explorer alternative such as Explorer++ then you can launch it and then use Tasklist in a LOOP to detect when it exits. If you are intending to use an employer's or school computer this may not be possible. (You do not have to use the alternative as an Explorer replacement; it can run independently.) Reply if you want guidance.
|