FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Please Help: Open file from within FiveWin
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Please Help: Open file from within FiveWin
Posted: Tue Dec 06, 2005 03: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

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Please Help: Open file from within FiveWin
Posted: Tue Dec 06, 2005 03:59 PM

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

EMG

Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Please Help: Open file from within FiveWin
Posted: Tue Dec 06, 2005 04:21 PM

Enrico,

Once again you have saved the day :-))

Thanks for the fast reply.

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion