1

Possible Duplicate:
How to make SUBST mapping persistent across reboots?

I want to run a batch file after Windows XP starts up. How can I do that?

My run.bat file:

  subst Z: C:\dir1\dir2\dir3\file

I put run.bat in the startup folder (C:\WINDOWS\system32\config\systemprofile\Start Menu\Programs\Startup) but the link isn’t created.

jon
  • 75

2 Answers2

1

Instead of using a batch file for this a simple registry trick makes the subst persist across reboots.

Wikipedia has how: http://en.wikipedia.org/wiki/Subst#Persisting_across_reboots

Majenko
  • 32,964
0

Try putting the .bat in the startup file

C:\Documents and Settings\User Name\Start Menu\Programs\Startup
Matt
  • 593