home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vxcliser.zip
/
VXREXX.2
/
MACROS
/
VXREZ
/
RUNEXE.VRM
< prev
Wrap
Text File
|
1994-12-23
|
677b
|
33 lines
/*
* runexe.vrm
*/
Main:
parse arg main_window
/* Figure out where the project lives... */
exe = ProjectExe( main_window )
if( exe = '' ) then do
msg = 'Please save the project to disk and make an executable' ,
'before running.'
call VRMessage parent, msg, 'Run EXE file'
exit
end
address cmd 'start' path
exit 0
ProjectExe:
parse arg parent
ProjectPath = VREProjPermPath()
if( pos( '\', ProjectPath ) = 0 )then do
return ""
end
path = VRParseFileName( ProjectPath, "DPN" ) || '.EXE'
if( VRFileExists( path ) = 0 )then path = ""
return path