Mel wrote:
> 'Anyone know of a way to run a command line from within PPT 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. BUT I can make it run a CMD
> file consisting of "RMDIR C:\foldername /s /q" and it works fine. The
> problem is due to technicalities, I'd rather not use an external file.
> Is there another way?
Amazing that RMDIR works! But, if it does, you don't *have* to run it
via a CMD file. You can just do something like:
Dim cmd As String
cmd = "RMDIR C:\foldername /s /q"
Shell Environ("comspec") & " /c " & cmd
Something like that, at any rate...
--
..NET: It's About Trust!
http://vfred.mvps.org