Jump to content
Sign in to follow this  
AZJIO

The problem with EnvSet function

Recommended Posts

AZJIO

http://autoit-script.ru/index.php/topic,13500.msg85891.html#msg85891

EnvSet("PATH", "C:\Boot")
Run('cmd.exe') ; must run the file "C:\Boot\cmd.exe"

FileChangeDir, @ScriptDir are not appropriate

Edited by AZJIO

Share this post


Link to post
Share on other sites
rudi

Hi.

See EnvUpdate().

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
gora

See EnvUpdate().

That does not change. Will start cmd.exe from a system folder.

Share this post


Link to post
Share on other sites
AZJIO

rudi,

In help is not written that I have to update the environment variables.

Share this post


Link to post
Share on other sites
Melba23

AZJIO,

Yes it is - albeit under EnvUpdate itself: :)

"For example, changes to the %path% environment might not take effect until you call EnvUpdate"

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
AZJIO

Melba23,

1. I do not want to change the variable globally

2. If EnvSet must be accompanied by calling EnvUpdate, this should happen automatically

3.

That does not change. Will start cmd.exe from a system folder.

Edited by AZJIO

Share this post


Link to post
Share on other sites
Melba23

AZJIO,

Then put in a feature request. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
KaFu
JFX

CreateProcess function

%Path% is the last thing that is used in the search for a program

Edited by JFX

Share this post


Link to post
Share on other sites
AZJIO

Even if to remove variables from %PATH% and to reboot, AutoIt3 all the same sees the "C:\Windows\System32\" folder. As though they are specified in AutoIt3.

Edited by AZJIO

Share this post


Link to post
Share on other sites
LarryDalooza

Works exactly as thw Windows API it was ported from...

EnvSet("PATH", "C:\Boot")
MsgBox(4096,"",EnvGet("PATH"))

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×