Coba aja pake sample powerscript function berikut
///////////////////////////////////////////////////////////////
string ls_path="C:\Documents and Settings\Guest\Folder"
integer li_filenum
li_filenum = RemoveDirectory ( ls_path )
If li_filename <> 1 then
MessageBox("Remove directory failed", &
+ "Check that the directory exists, is empty, and " &
+ "is not the current directory")
else
MessageBox("Success", "Directory " + ls_path + " deleted")
end if
Catatan :
The directory must be empty and must not be the current directory for this
function to succeed.
///////////////////////////////////////////////////////////////
malx 97 <[EMAIL PROTECTED]> wrote: declare di Global External
Functions :
FUNCTION boolean RemoveDirectoryA( ref string path ) LIBRARY "kernel32.dll"
trus tinggal di panggil aja function tsb, tapi kayaknya isi folder mesti
kosong.
yg mudah create batch file trus jalanin batch file tsb.
yazid <[EMAIL PROTECTED]> wrote: Dear all PBers...
Bagaimana syntax menghapus directory berikut file2 didalamnya ?
Baik, dari command prompt atau dari PB.
Thanks
-----------------------------------------------
IndoPB - Indonesia PB User Group
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe,send a blank message to: [EMAIL PROTECTED]
SPONSORED LINKS
Computer monitoring
software Free computer monitoring
software
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "indopb" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
[Non-text portions of this message have been removed]
-----------------------------------------------
IndoPB - Indonesia PB User Group
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe,send a blank message to: [EMAIL PROTECTED]
SPONSORED LINKS
Computer monitoring
software Free computer monitoring
software
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "indopb" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
[Non-text portions of this message have been removed]
-----------------------------------------------
IndoPB - Indonesia PB User Group
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe,send a blank message to: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indopb/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/