Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple ShellExecute isn't working? Why?

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
Here is what I have:

ShellExecute( 0, "open", Path2, NULL, Path2, SW_RESTORE );


Path2 is a valid char * and it's a valid path because I use Path2 as a place to save images to.

The intention of the code is to save images to the Path2 folder (working) and then open the folder in explorer (not working).

Path Reads:
Path2 0x011d27d4 "D:\\0411930D_NoQual\X009BMK"

Is the double \\ messing me up?


=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
try this one:
"D:\\0411930D_NoQual\\X009BMK"

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top