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
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?????
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.
Summary: I am thinking about upgrading from Win 98SE to Win xp PRO. I use a DOS program that requires a line in my autoexec.bat that reads: set clipper=f50 Will Win xp read this autoexec.bat set clipper=f50...
Summary: It's a system file, so it may be hidden. Open Windows Explorer, go to Tools/Folder options. Under "View", make sure to check the option that says "Show all hidden files and folders". After you click O...