Please Help: Open file from within FiveWin

Post Reply
User avatar
Jeff Barnes
Posts: 933
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Please Help: Open file from within FiveWin

Post by Jeff Barnes »

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
Enrico Maria Giordano
Posts: 8777
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: Please Help: Open file from within FiveWin

Post by Enrico Maria Giordano »

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

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

Post by Jeff Barnes »

Enrico,

Once again you have saved the day :-))

Thanks for the fast reply.

Jeff
Post Reply