Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Renaming or deleting directories in APL+Win
I'd like to either delete or rename directories as part of my picture site
creating program. You can't rename, as you can't tie to a directory. And
the []rmdir only works on empty directories. These never are. I could use
[]cmd and issue DOS commands. But are there some more elegant APIs that I
can use?

Don <www.donwiss.com> (e-mail link at home page bottom).

Report this thread to moderator Post Follow-up to this message
Old Post
Don Wiss
05-04-05 08:56 AM


Re: Renaming or deleting directories in APL+Win
Don Wiss wrote:
> I'd like to either delete or rename directories as part of my picture site
> creating program. You can't rename, as you can't tie to a directory. And
> the []rmdir only works on empty directories. These never are. I could use
> []cmd and issue DOS commands. But are there some more elegant APIs that I
> can use?
>
> Don <www.donwiss.com> (e-mail link at home page bottom).

Use the MoveFile API call.

#wcall 'MoveFile' ('c:\path\OldDirName',#tcnul) ('c:\path\NewDirName',#tcnul
)

MoveFile should be defined in the ADF file.  If not, it is:
MoveFile=B(*C lpExistingFileName, *C lpNewFileName) ALIAS MoveFileA LIB Kern
el32


.qed

Report this thread to moderator Post Follow-up to this message
Old Post
apl
05-04-05 08:56 AM


Re: Renaming or deleting directories in APL+Win
To delete a folder (empty or not) try:

[]wself{comes from}'fso' []wi 'Create' 'Scripting.FileSystemObject'
[]wi 'XDeleteFolder' 'c:\New Folder'



Report this thread to moderator Post Follow-up to this message
Old Post
AA2e72E
05-04-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

APL archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:49 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.