Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Opening a directory
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
MrPickle
New Member
Join Date:
Jul 2008
Posts:
100
#1
Opening a directory
Oct 20 '08, 06:38 PM
Is there a way to force windows to open up a directory with explorer.exe through c++?
I think system("explore r.exe"); but then how do I choose which directory?
boxfish
Recognized Expert
Contributor
Join Date:
Mar 2008
Posts:
469
#2
Oct 20 '08, 09:07 PM
Pass the path of the directory in quotes to the explorer command.
system("explore r \"C:\\mydir\ "")
Hope this helps.
Comment
Post
Cancel
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#3
Oct 21 '08, 02:47 AM
You can us ethis command to do that
iexplore "c:\program files"
You can pass this command to system() and it will open the directory.
raghu
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment