hoagers34
December 18th, 2006, 02:24 PM
I created a shell context menu and when a user clicks on a file, it will launch my program and it passes a commandline parameter of the file name.
I want my program to be able to open the file, but the problem is that the commandline parameter is not formatted correctly...
I am receiving "C:\test.txt" and it should be "C:\\test.txt". If i try to pass the commandline to File->Open...it fails. But if i pass C:\\test.txt it will open fine...what gives?
Is there a simple way to convert the parameter to the proper format???
I want my program to be able to open the file, but the problem is that the commandline parameter is not formatted correctly...
I am receiving "C:\test.txt" and it should be "C:\\test.txt". If i try to pass the commandline to File->Open...it fails. But if i pass C:\\test.txt it will open fine...what gives?
Is there a simple way to convert the parameter to the proper format???