Abdes
Abdes

Reputation: 996

Open a folder using .bat

What command should I use to open a specified Folder

these two lines are did not working

start   C:\xampp\htdocs\w\CodeIgniter_mysite\

%SystemRoot%\explorer.exe C:\xampp\htdocs\w\CodeIgniter_mysite\

Upvotes: 1

Views: 9272

Answers (2)

Ethan Wass
Ethan Wass

Reputation: 105

explorer C:\xampp\htdocs\w\CodeIgniter_mysite\

Should Work

Upvotes: 2

Ata Keskin
Ata Keskin

Reputation: 117

Syntax

explorer.exe [/n][/e][,/root,][[,/select],]


The command below works fine in Windows 10 for me:

explorer.exe /root,C:\

or in your case:

explorer.exe /root,C:\xampp\htdocs\w\CodeIgniter_mysite\

Don't forget the comma after the /root tag.


See this for more information on explorer.exe

Upvotes: 1

Related Questions