Solved

Autostart and network drives

Posted on 2002-05-27
5
123 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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