Solved

Change Win95 environment variables

Posted on 1998-07-19
1
187 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 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