Re: Batch file executed at startup
- From: "Trevor L." <tandcl@xxxxxxxxxxxxxxx>
- Date: Sun, 27 Nov 2005 11:23:27 +1100
Wesley Vogel wrote:
> [[Deleting the current directory
> You cannot use rmdir to delete the current directory. You must first
> change to a different directory (not a subdirectory of the current
> directory) and then use rmdir with a path. If you attempt to delete
> the current directory, the following message appears:
>
> The process cannot access the file because it is being used by another
> process.]]
> Rmdir (rd)
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx
>
> Kill explorer.exe and use the command prompt to delete the folder.
>
> Open the Task Manager...
> Ctrl + Shift + Escape | Click on the Processes tab | Locate and
> highlight explorer.exe | Right click explorer.exe | Click End Process
> | Click
> Yes to the Task Manager Warning that pops up | File | New | CTRL key
> + click New Task (Run...)
>
> Then type or paste into the command prompt:
> rmdir C:\Documents and Settings\Trevor\My Documents\My Webs\oldzip /Q
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> In news:ONNCpWo8FHA.472@xxxxxxxxxxxxxxxxxxxx,
> Trevor L. <tandcl@xxxxxxxxxxxxxxx> hunted and pecked:
>> This is a simple question.
>>
>> I have a folder which I can't delete as it is in use - I find
>> explorer.exe has it. I can't close explorer as then I want have
>> access to the folder to delete it
>>
>> I therefore want to execute a file at start-up to do the deletion
>> The contents would be:
>> rmdir C:\Documents and Settings\Trevor\My Documents\My Webs\oldzip /Q
>>
>> Where do I put this code?
>> Is it autoexec.bat ?
>> Or what?
>> --
>> Cheers,
>> Trevor L.
>> Website: http://tandcl.homemail.com.au
Thanks, Wesley.
I knew that I could kill explorer.exe, but then I didn't know how to get to
the command prompt as all the icons etc, are removed. I think you are saying
that I can get to it from the Task Manager.
Luckily, I tried to delete the folder one more time and ths time it worked.
(I have no idea why explorer was using it.) So I won't need to go through
the steps you gave. It is good to know that commands can be executed after
explorer is closed.
--
Thanks again,
Trevor L.
Website: http://tandcl.homemail.com.au
.
- Follow-Ups:
- Re: Batch file executed at startup
- From: Wesley Vogel
- Re: Batch file executed at startup
- References:
- Batch file executed at startup
- From: Trevor L.
- Re: Batch file executed at startup
- From: Wesley Vogel
- Batch file executed at startup
- Prev by Date: Re: Can I do an XP Repair Install with an ISO Image disk?
- Next by Date: Re: Can I change the Product Key on Windows XP Professional? Attention: Mr. Frisch!
- Previous by thread: Re: Batch file executed at startup
- Next by thread: Re: Batch file executed at startup
- Index(es):
Relevant Pages
|