Solved

Change Win95 environment variables

Posted on 1998-07-19
1
173 Views
Last Modified: 2006-11-17
Can I change an environment variable that was declared in
autoexec.bat from a VB program, without the need to restart
the comupter ?
0
Comment
Question by:amnav
1 Comment
 
LVL 1

Accepted Solution

by:
web_crusher earned 100 total points
ID: 1466196
of course , the change can be done - the effect of it will take place only after the reboot.

the bat file are ascii files open them with

dim stringlien as string

open file for input as #1
do until e0f(1)
line input #1 , stringline
'what ever you want to change
loop

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 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

24 Experts available now in Live!

Get 1:1 Help Now