Solved

Specifying a path for windows 95 files

Posted on 1997-11-20
4
145 Views
Last Modified: 2013-12-16
Can I specify, and in what file, a path for my DLLs, or runtime libraries? I don't want them to be in the same directory as the application, nor in the windows directory, nor in the application working directory. In w3.1 and NT3.51, I could spacify it (in autoexec.bat, or thruogh the control panel). How can I do the same in windows 95?
0
Comment
Question by:mquiles
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1751943
To quote from the MS Knowledge Base:

With both implicit and explicit linking, Windows first searches the set of pre-installed DLLs such as the performance library (KERNEL32.DLL) and the security library (USER32.DLL). Windows then searches for the DLLs in the following sequence:

1. The directory where the executable module for the current process is located.
2. The current directory.
3. The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
4. The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
5. The directories listed in the PATH environment variable.

Note that the LIBPATH environment variable is not used.

0
 

Author Comment

by:mquiles
ID: 1751944
Your answer is grate, but, may main question was: how can I modify the PATH environment variable? The autoexec.bat in C root seems not to be executed when I start the pc with windows 95
0
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1751945
Win95 does read the AUTOEXEC.BAT file and it does set the PATH if you specify it in the file. See below:

AUTOEXEC.BAT Processing

AUTOEXEC.BAT is not required for Windows 95, but it is included for compatibility purposes. If the computer has an AUTOEXEC.BAT file, each line is processed in sequence during system startup. AUTOEXEC.BAT can contain additional application-specific entries that are run in the sequence they are listed.

Windows 95 passes the initial environment to COMMAND.COM with the correct Windows and Windows COMMAND directories already in the path and with the environment variables PROMPT, TMP, and TEMP already set. (TEMP= and TMP= indicate locations for temporary directories; both are specified for compatibility reasons.)

The following AUTOEXEC.BAT commands have equivalent default settings created in IO.SYS for Windows 95.

AUTOEXEC.BAT Equivalents for Windows 95 IO.SYS Default Settings

Command
 Meaning
 
net start
 Loads the real-mode network components and validates the binding. Any errors received are placed in the NDISLOG.TXT file. (SYSINIT or COMMAND.COM performs the necessary net start command.)
 
set path
 Sets the path as specified.
 




The default Windows 95 environment includes the following:




tmp=c:\windows\temp
temp=c:\windows\temp
prompt=$p$g
path=c:\windows;c:\windows\command
comspec=c:\windows\command\command.com

0
 

Author Comment

by:mquiles
ID: 1751946
Thanks for your answer, I suppose I didn't specify correctly the PATH variable (without SET PATH=, only PATH=).
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
winrar and 7zip compression not ok 3 35
virus question? 6 75
Problem to setup GUI 11 33
Problem to Alipay 10 24
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 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