El siguiente código
Code: Select all | Expand
ShellExecute(0,"Open",cFile,,,1)
DELETE File(cFile)
como si primero se eliminara (DELETE) y después el intento de abrirlo (SHELLEXECUTE)
Gracias por el apoyo
Code: Select all | Expand
ShellExecute(0,"Open",cFile,,,1)
DELETE File(cFile)
Code: Select all | Expand
ShellExecute(0,"Open",cFile,,,1)
SysWait(2)
DELETE File(cFile)
Code: Select all | Expand
copyfile(cFile, "TEMP\" + cFile
ShellExecute(0,"Open","TEMP\" + cFile,,,1)
FERASE(cFile)
....
...
...
Willi Quintana wrote:MI estimado, una idea...Code: Select all | Expand
copyfile(cFile, "TEMP\" + cFile ShellExecute(0,"Open","TEMP\" + cFile,,,1) FERASE(cFile) .... ... ...
Enrico Maria Giordano wrote:Also try with WAITRUN().
Code: Select all | Expand
FUNCTION CERRAR_TODO()
IF FILE( "TUTOR09.LOG" )
DELETEFILE( "TUTOR09.LOG" )
ENDIF
IF FILE( "ARCHIVO.PDF" )
DELETEFILE( "ARCHIVO.PDF" )
ENDIF
lSalida := .F.
DbCommitAll()
DbUnLockAll()
DbCloseAll()
FreeResources()
Release All
SysRefresh()
HB_GCALL( .T. )
CLEAR MEMORY
PostQuitMessage( 0 )
QUIT
RETURN NIL
Armando wrote:Mr. Enrico,
I didn't understand your idea, I'm sorry, can you expand on it
Regards
Enrico Maria Giordano wrote:Also try with WAITRUN().
Code: Select all | Expand
WAITRUN( "your_pdf_reader.exe your_pdf_file.pdf" )