Solved

Autostart and network drives

Posted on 2002-05-27
5
115 Views
Last Modified: 2012-05-04
Hello,

simple problem:
I want to put a program that is located on a network drive into the 'Start Up' menu so it gets loaded every time the PCs start.

The problem is that sometimes (esp. on slower PCs) the network drives aren't connected yet when Windows tries to load the programs in the start up group, which results in a file not found error.

What can I do about that?

Markus
0
Comment
Question by:Max2k
5 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 7036860
First, this is not a good technique, that is, creating a startup/logon dependency on a remote application.

But if you must, you really should make this fail-safe so that you don't create an error in the event that the remote application is unavailable.

My suggestion would be to write a wrapper application (thas is a LOCAL application) that could be run from the Start Up folder and would check for the accessibility of the remote application, perhaps over a period of a few minutes after starting, and only attempt to start the remote application after verifying that it's available.
0
 

Author Comment

by:Max2k
ID: 7036888
@jhance
I've thought of doing that already. I'd prefer another method though.. like getting Windows to wait with the start-up programs until network initialization is done. (some undocumented registry settings, other workarounds,... you know :).

It doesn't really need to be fail-safe. The application is located on a file server within the LAN whichs uptime is quite high. It doesn't even matter if it can't be started sometimes due to the server being down. There are users sitting at the PC who could start it if they have to. Also there are many other things that depend on this server, which would keep everything from working anyway.

The program I'm trying to launch centrally from the server gets updated often and is used by about 10 PCs, so I though storing it centrally would be a good idea.

Max
0
 
LVL 22

Accepted Solution

by:
cookre earned 50 total points
ID: 7037162
How about a bat file like:

for /L %%z IN (1,1,10) do (
if exist x:\thing.exe goto gotit
wait 5
)
:: net app not found
...

:gotit
:: net app found


If you don't have a wait command:
http://www.afreego.com/Categories/Utilities/Automation/006450.php
0
 
LVL 7

Expert Comment

by:jatcan
ID: 7044982
BINGO! I knew there HAD to be something out there for this:

The overview page:

http://www.webattack.com/Freeware/system/fwstartup.shtml

the download page:

http://www.webattack.com/php/download.php?id=103272&app=startdelay&r=l

Did I metion that this was freeware...oh and there are a bunch of startup managers(all freeware) on this site;possibly one there will be better for you but from what I read the link I posted does exactly what you want to do...
0
 

Author Comment

by:Max2k
ID: 7050561
The batch file answer probably is the best for this.
I can't use the freeware programs on these PCs.. who knows what they do besides their real job.

thanks all
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Recovering backup .Qic files on Windows 7 6 2,186
Domain dunctional level. 4 313
cant not receive emails, due to low disk space. 16 255
Retrieve process time in memory in VB 6 121
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now