GeneXus - Borrar archivos

 
Vista:

Borrar archivos

Publicado por Javier (1 intervención) el 27/12/2005 17:17:41
Hola Foro, lo que estoy queriendo hacer es borrar un archivos fisicamente del cual conozco el path. Puedo saber si existe con el fileexist() pero no la verdad es que no econtre ninguna funcion para borrarlo. Estoy trabajando con la version 8 de GX y generando con VFP 6. Probe tambien ejecuntando mediante el DBASE la setencia en visual fox pero no me funciono. Ahi ya no se si es por el paso de mi variable entre genexus y el visual fox, pero bue...
Si alguien conoce la funcion que lo haga directo o algo asi, se los agradecere mucho. Saludos desde Paraguay
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Borrar archivos

Publicado por jj (1 intervención) el 01/01/2006 11:20:29
DeleteFile Function
Scope
Objects: Procedures, Reports, Transactions, Web Panels, Work Panels

Languages: .NET, C/SQL, Java, Visual Basic, Visual FoxPro

Interfaces: Web, Win

Purpose
Allows deleting a certain file.

Syntax
Deletefile( character_expression )



Type Returned:

Numeric(1)



Where:

Character_expression

Is a string with the file name and path of the file to be deleted.

Description
Keep in mind that, in the string parameter (with the name and path of the file to be deleted), this path should be absolute for the place where the application is running this function

The function returns 1 in case of success and 0 on the contrary.

Example
&filename= “c:\Temp\report.gxr”

&var=Deletefile(&filename)

See Also
FileExist Function
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar