Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: environment variable
Runwait("command.com", "/e:2048 /c %smssrvr%%smsbatfile%")
SET SYBASE=C:\SYBASE SET PATH=C:\SYBASE\BIN;C:\SYBASE\DLL;I would like to use Winbatch to set this environment as part of either HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER. Can it be done and can someone outline the code?
There is a Microsoft utility that can be used to set a global DOS variable in Windows 95. The utility is called "WinSet" and it's in a self-extracting archive file named "envars.exe". It's used almost identically to the DOS Set command, except it changes the master DOS environment in Windows 95.
As we mentioned above, there is a Microsoft utility that can be used to set a global DOS variable in Windows 95. The utility is called "WinSet" and it's in a self-extracting archive file named "envars.exe". It's used almost identically to the DOS Set command, except it changes the master DOS environment in Windows 95.
What are you trying to do? If you are trying to return an errorlevel to WinBatch, see ERRORLEVEL.* in the samples subdirectory.
Are you trying to return other info to WinBatch? To write info to a ini file like thusly...
echo [MyData] > c:\temp\mydata.ini echo envvar=%envvar% >> c:\temp\mydata.ini
In WinBatch, do the following:
envvar=IniReadPvt("MyData","envvar",0,"c:\temp\mydata.ini")NB: The RunEnviron function CAN ONLY SET THE ENVIRONMENT AND RUN WINDOWS PROGRAMS. IT CANNOT RUN DOS PROGRAMS.
Article ID: W12924
Filename: Setting the Environment in Windows 95.txt
File Created: 2000:03:28:16:24:40
Last Updated: 2000:03:28:16:24:40