How do I open a folder using batch file [Solved/Closed]

deepty - Nov 6, 2008 at 01:19 AM - Latest reply:  naeem
- Dec 6, 2017 at 04:18 AM
Hello,

Iam trying to open a folder in a particular drive. How do I create a batch file for opening any particular folder?

Any kind of help is appreciated.

Thanks
Deepty.
See more 

15 replies

+119
Helpful
3
%SystemRoot%\explorer.exe "folder path"
Was this answer helpful?  
Sir Frederick Rupert Fielding III - Jul 25, 2017 at 02:28 PM
Good sir,

This answer was excellent as it provided precisely the information I required in order to perform my desired task. The result of said task was exactly the outcome which I had dreamt of for hours upon hours as I searched for guidance. Without you sharing your expertise with us I would have never been able to feel the euphoria of this experience!

Thank you for your teachings,
Sir Frederick Rupert Fielding III
thanks it worked perfectly
+42
Helpful
Do this using notepad, save as: anything.BAT

If you wanted to open documents do:

START C:\Users\Daniel\Documents


Hope I've helped. :)
+31
Helpful
%SystemRoot%\explorer.exe "folder path"

folder path is the path you wish to open
GeekOfTheDay - May 11, 2010 at 01:49 PM
+16
Helpful
2
%SystemRoot%\explorer.exe "folder path"

just type the folder path between the quotations
\> explorer \\ip
guizmomo 7 Posts Wednesday November 5, 2008Registration date May 18, 2009 Last seen - Nov 6, 2008 at 06:21 AM
+7
Helpful
hey buddy,

just check out the link below this is what you are in search of :

http://ccm.net/forum/affich 16973 open a file with spaces from batch file
+5
Helpful
" start \\sertver\folder\file.doc "
+4
Helpful
1
You can create a batch file like
explorer "folder path"
(quotes are not necessary for paths without spaces).
Then you can convert your batch file to exe. There is a number of software for it. For example, you can use Dr.Batcher (http://www.drbatcher.com).
+3
Helpful
1
in dos there is cmd for opening any file or folder
start <pgmname>
Thanks for your wrote sasuke