Please Help: Open file from within FiveWin

Please Help: Open file from within FiveWin

Postby Jeff Barnes » Tue Dec 06, 2005 3:55 pm

Hi Everybody,

I have a problem opening a file from within my program.
The file name is a bit unusual and is causing problems.

From Windows I can click on the file and it launches its program without any problems but it will not work from within FineWin.

An example of the filename is: "ABR, Demo 03-14-2005 16-30-48.sd"

I have tried:
WaitRun("\mypath\ABR, Demo 03-14-2005 16-30-48.sd")
WinExec("\mypath\ABR, Demo 03-14-2005 16-30-48.sd")
ShellExecute("\mypath\ABR, Demo 03-14-2005 16-30-48.sd")

and none are able to open the file.

I can not modify the filename to change its structure.

Can anyone suggust a way to do it?

Thanks,
Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Please Help: Open file from within FiveWin

Postby Enrico Maria Giordano » Tue Dec 06, 2005 3:59 pm

SHELLEXECUTE( 0, 0, "\mypath\ABR, Demo 03-14-2005 16-30-48.sd", 0, 0, 1 )

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8389
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Jeff Barnes » Tue Dec 06, 2005 4:21 pm

Enrico,

Once again you have saved the day :-))

Thanks for the fast reply.

Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests