LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Special problem deleting a folder

2003/2007
(This has to do with PowerPoint VBA, but I'm asking here because
theres a lot more VBA users here.)

Is there a way to run a batch-like command line to delete a folder
from within routine without calling to an external BAT or CMD file?
I'm trying to simply delete some folders within which is an addin that
my code already unloaded
and removed and unregistered, and now I want its folders deleted
(within the same PPT session that started the macro). But PPT holds on
to the addin file thinking it's still being used (which it's not) and
won't let RmDir or Kill code remove it. (Known problem with PPT.) BUT
I can make the code run an external CMD file consisting of "RMDIR C:
\foldername /s /q" and it works fine. The problem is, I'd rather not
use an external file. Is there another way to call it from within the
routine but use some sort of Shell command or something (without using
an external file)?

Thanks,
Melina
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check for the existence of the Temporary folder namedTemporary Folder a , 2 and so on before deleting as the name is not fixed Yuvraj Excel Programming 1 May 3rd 09 09:41 PM
Windows LOGON NAME - special case - account name different from folder name riso Excel Programming 3 February 12th 07 09:52 PM
Deleting empty rows (special case) Ali Excel Discussion (Misc queries) 1 June 12th 06 07:57 PM
Excel VBA - deleting populated folder problem PaulC Excel Programming 5 April 13th 04 11:45 PM
Deleting Files in Folder JEFFRO Excel Programming 5 December 14th 03 12:12 AM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"