As far as the directory I guess you could call a batch file that actually
did the delete.
Good luck,
Chris
"George Akers" <ake...@dot.state.al.us> wrote in message
news:3B0D0A11...@dot.state.al.us...
"George Akers" <ake...@dot.state.al.us> wrote in message
news:3B0D2609...@dot.state.al.us...
See this link http://my.sybase.com/detail?id=44545
DeleteFileA( )
This function receives a string by reference containing a fully path
qualified filename and deletes that file. There is no PowerBuilder
equivalent.
Global External Function:
FUNCTION boolean DeleteFileA(ref string filename) LIBRARY "Kernel32.dll"
Script:
string l_file
boolean rtn
l_file = string(sle_to.text)
rtn = DeleteFileA(l_file)
MessageBox("DeleteFile", string(rtn))
"George Akers" <ake...@dot.state.al.us> wrote in message
news:3B0D0A11...@dot.state.al.us...
1) Delete all the files in the target directory - you can do this in the
ways described to in other replies (for e.g. get the file listing and then
delete them one by one), or do it using SHFileOperationA API (see Roy
Kiesler's PFC Shell Service
http://teamsybase.com/roy.kiesler/downloads/shell.zip)
2) After the directory is empty, use RemoveDirectoryA API (see PFC Win32
file service)
This is a FAQ, read Help, then search www.groups.google.com
pbm_thisusuallydoesnothelp:-))
Philip Salgannik
"George Akers" <ake...@dot.state.al.us> wrote in message
news:3B0D0A11...@dot.state.al.us...