A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

I want to make a temporary drive



 
 
Thread Tools Display Modes
  #1  
Old November 13th 13, 09:20 PM posted to microsoft.public.windowsxp.general
metspitzer
external usenet poster
 
Posts: 580
Default I want to make a temporary drive

I want to make a temporary drive from the folder c:\tempdrive
I also want a batchfile (dels.bat) that will delete everything in the
temporary folder (drive).
http://www.tomshardware.com/forum/99...oexec-startup#.
http://stackoverflow.com/questions/1...prompt-in-wind

I was reading this and I thought I would just ask directly. Since I
use this computer for P2P, I don't want to reboot it yet.

I issued the command "subst s: c:\tempdrive" from a command prompt and
it made the drive s:. I also put the instruction in autoexec.nt in
the root directory of c:

so autoexec.nt and dels.bat a

subst s: c:\tempdrive
s:
FOR /D %%p IN (s:\) DO rmdir "%%p" /s /q

This seems to work in the batch file. Is there any reason it won't
work in the autoexec.nt next time I reboot?

Also a Winrar question.......Can I add a command to the right click
menu to extract a rar file to s:\ ?
Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 12:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.