How can I open folders via batch file?

thatsright

Diamond Member
May 1, 2001
3,004
3
81

I need to open several folders at once (not the files in them) and will use a simple batch file in windows. But what are the commands to open a folder? I tried;

open=d:
open=c:\program files

But nothing is working. Can anyone think of what I'm doing wrong?
 

KK

Lifer
Jan 2, 2001
15,903
4
81
Originally posted by: Connoisseur
wrong forum buddy

yeah, send this over to programming. You may get a response in the next month or so. :p
 

KLin

Lifer
Feb 29, 2000
30,055
460
126
@echo off
start explorer.exe "D:\"
start explorer.exe "C:\program files"
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
startup script fun!

for /f %%g in ('dir c:\ /a:d /b /s') do (
start explorer.exe "%%g%"
)