Computing.Net > Forums > Windows XP > autoexec.bat under XP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

autoexec.bat under XP

Reply to Message Icon

Name: olletsoc
Date: September 30, 2003 at 10:42:07 Pacific
OS: Windows XP Home
CPU/Ram: 512mb
Comment:

I am running Windows XP and would like to use the autoexec.bat file I have created to delete C:\temp file at startup. I know how and have completed the file. The problem is that when the system boots, it does not perform the function in the file. Below is the file I have setup:

@ECHO OFF
PROMPT $p$g
SET TEMP=C:\TEMP
SET TMP=C:\TEMP
@DELTREE /Y C:\TEMP
@MD C:\TEMP
@deltree /y C:\WINDOWS\TEMP
@MD C:\WINDOWS\TEMP

Can anyone tell me why that will not run under windows xp home edition?????

Thank you for your help.

Rick




Sponsored Link
Ads by Google

Response Number 1
Name: SPC68UK
Date: September 30, 2003 at 11:05:38 Pacific
Reply:

I think (I hope I'm right) you have to put the autoexec file in your windows/system32 folder and call it autoexec.nt rather than .bat.
Also, you should set the environment variables, ie "set temp=c:\temp" etc. by right clicking on my computer, properties, advanced tab and environment variables.
Hope it helps.


0

Response Number 2
Name: Tom
Date: September 30, 2003 at 11:08:07 Pacific
Reply:

Don't try to use it as an autoexec.bat durring startup, just drop a shortcut to it in your startup folder.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


XP Authentication Certifi... I cant install games or s...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: autoexec.bat under XP

DOS Autoexec.bat \ Win xp www.computing.net/answers/windows-xp/dos-autoexecbat-win-xp/93883.html

installing program www.computing.net/answers/windows-xp/installing-program/70234.html

has windows Xp the autoexec.bat? www.computing.net/answers/windows-xp/has-windows-xp-the-autoexecbat/41210.html