Script package to run multiple instances of Windows Explorer in the same place

I have a script package on the Windows XP desktop (LaunchWindowsExplorers.bat) that should run multiple instances of Windows Explorer.

It looks like this:

LaunchWindowsExplorers.bat :

start explorer "C:\SomeDirectory" 
start explorer "C:\SomeDirectory" 

When i double click the file LaunchWindowsExplorers.bat

I would expect to see

  • two instances of Windows Explorer open in the "C: \ SomeDirectory" folder.

Instead i see

  • only one instance of Windows Explorer opened in "C: \ SomeDirectory".

What do I need to do to make this script open two instances of Windows Explorer, each of which is open in "C: \ SomeDirectory"?

Thank.

+5
source share
3 answers

explorer /n,"C:\SomeDirectory", explorer /e,"C:\SomeDirectory" explorer /root,"C:\SomeDirectory" ( , ). , : http://support.microsoft.com/kb/314853:


/n                      . ,                      Windows .                      , .

/e Windows .

/root, <object> .

/select, <object> , ,                       .


, ( ) XP. Win7 . Vista.

+5

, - :
start explorer "C:\SomeDirectory"
start explorer "C:\AnotherDirectory"
, ?
, , , , , , ( ).
, .

+1

wmz . - , , .

script , , , , Explorer , .

, , , Win7.:) , / WinXP, , , , ; , . , , . , ?:)

call :ForceStartExplorerWindow .
call :ForceStartExplorerWindow .
call :ForceStartExplorerWindow .

GOTO :EOF


:: Pass The location to open as %1
:ForceStartExplorerWindow

SETLOCAL

set __ForceStartTempDir=%1\ThisShouldNeverExist-%RANDOM%
md %__ForceStartTempDir%
start explorer %__ForceStartTempDir%

:: Hope this wait is long enough for Explorer to finish loading it...
ping -n 2 localhost >NUL

:: Hope this rd works...
rd %__ForceStartTempDir%
:: FUTURE: Consider retrying upon failure.

:: End of ForceStartExplorerWindow
GOTO :EOF
+1

All Articles