[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] delete file



You could also try this:

let #status = delete($filename)
if #status = 0
   ! It worked
else
   ! #status contains an error code from the operating system
end-if


Kevin Reschenberg

www.sqr-info.com
www.sparkpath.com


 
-------- Original Message --------
Subject: Re: [sqr-users] delete file
From: don.barclay@srs.gov
Date: Wed, December 08, 2004 8:39 am
To: "This list is for discussion about the SQR database reporting
language from Hyperion Solutions." <sqr-users@sqrug.org>

Hi Eduardo,

The following code works for us...

 let $Comspec = getenv('COMSPEC')
 let $Host_Call = $Comspec || ' /C del/q filename.txt'

call system using $Host_Call #Call_Status
 if #Call_Status = 0
   show 'File Deletion Successful'
 else
   show 'File Deletion NOT SUCCESSFUL'
   show '#Call_Status: ' #Call_Status
   stop
 end-if

Hope this helps!

Regards,
Don

sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 12/08/2004 
11:24:50 AM:

> Hello all,
> 
> I'm doing a program that read a .CSV file,
> but after close the file, I need to delete the file from it's location
> does anyone can tell me some command to delete it?
> 
> thank you so much
> 
> 
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users 


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users