SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows XP
User Name
Password


Creating SUBSTed drives before any programs are loaded.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 10-28-2002, 07:07 PM
MrZebra's Avatar
MrZebra Offline
Junior Member
 
Join Date: Oct 2002
Location: Montreal, Canada
Posts: 6
Send a message via ICQ to MrZebra
Creating SUBSTed drives before any programs are loaded.

For the last few years (This goes as far back as Win95 on my 386 I had back then) I've taken the habit of installing all my programs on SUBSTed drives so that whenever I upgrade, change, repartition hard drives and the letters change, all I need to do is change AUTOEXEC.BAT and then, if D: became E:, programs all run the same since they are installed on U: (Which is E:\Misc - where all my programs are installed)

In WinXP, AUTOEXEC.BAT doesn't get run anymore. So I put all my SUBST commands in a batch file and then put a shortcut to it in Start -> Programs -> Startup. Problem is, as the computer is booting up, programs that are installed on the U: drive (For now, Pegasus Mail, ICQ, Webshots and Seti@Home but I installed WinXP yesterday so more will follow) sometimes (And this is erratic, each boot is different) one or more of these is trying to start before the U: drive is created which results in the program not starting.

I tried moving that BAT file into the registry Run command assuming that this gets run before the Startup folder but it made no difference. Then searching on WinXP sites I found that using GPEdit.msc I could set up a startup script to load that batch file. And it works, it looks cleaner too as I don't see a DOS window popping up. But that still doesn't fix the problem that some programs somehow attempt to start before the U: is created.

I also tried changing the Startup (And Registry Run commands) to point to the real path (Ex: E:\Misc\PMAIL\wpmail32.exe instead of U:\PMAIL\wpmail32.exe) but some programs don't like that (Pegasus Mail says the user doesn't exist or something)

Is there a way to have this batch file run before the user logs in (If a DOS window flashes as soon as the login prompt appears is fine by me)? I know in 95/98, some programs (Mainly Web App Servers and Anti-Virus programs) were starting up before the Username Password Dialog. Can I do that in XP?
__________________
I don't care how cold cold cold it is in your hole hole hole but you cannot have my sweater.
Reply With Quote

  #2  
Old 10-29-2002, 06:20 PM
Grendel's Avatar
Grendel Offline
Senior Member
 
Join Date: Sep 2002
Location: Nova Scotia, Canada
Posts: 451
Try adding the bat file to this key as you did to Run.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

I noticed logonui.exe runs in here, and that is the logon screen.

I could only guess if it would work for you. But I am thinking that explorer.exe is going to need to run first, and once explorer.exe is running I would assume any other app could then run???

GOOD LUCK
Reply With Quote

  #3  
Old 10-29-2002, 07:13 PM
MrZebra's Avatar
MrZebra Offline
Junior Member
 
Join Date: Oct 2002
Location: Montreal, Canada
Posts: 6
Send a message via ICQ to MrZebra
Ok, but how would I have it run my batch file?

Change that value to C:\substdrv.bat and at the end of substdrv.bat load logonui.exe?

In case that fails, that would make my windows unbootable, what file do I need to backup (And restore booted in Safe Mode/Command Prompt Only if needed) I know in Win9x, the registry is in SYSTEM.DAT and USER.DAT but did that change in XP?

I read on my many searches on the matter that a program called ResHack could be used to modify logonui.exe but it mainly mentionned changing bitmaps and colors. Can this utility be used to make it run some commands too?

My other leads as to a solution (Have yet to try) would be to find a way to run this as a service or put all my startup programs in that batch file.

Ex: instead of putting a shortcut for Pegasus Mail in the Startup folder, I would but this batch file that would run all the SUBST commands and then start Pegasus Mail (And then, all other programs that are running off the U: drive at startup) But I would like to avoid doing that if possible.
__________________
I don't care how cold cold cold it is in your hole hole hole but you cannot have my sweater.
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SP2 Add/Remove Programs Prob buck Windows XP 7 04-23-2005 05:41 PM
Major problem with both my DVD and CD drives on XP pete_kwok Windows XP 1 01-04-2005 04:08 AM
How do I "view" all my programs from the Start menu? WindowsXPer Windows XP 1 10-02-2004 07:27 AM
dissapearing drives Xadow Hardware Problems 2 04-10-2004 10:48 PM
Why do secondary accounts not have access to all programs? rlak Windows XP 2 12-08-2003 09:06 AM



All times are GMT -5. The time now is 11:08 PM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.