AZJIO Posted May 8, 2013 Posted May 8, 2013 (edited) 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 May 8, 2013 by AZJIO My other projects or all
rudi Posted May 8, 2013 Posted May 8, 2013 Hi. See EnvUpdate(). Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
gora Posted May 8, 2013 Posted May 8, 2013 See EnvUpdate().That does not change. Will start cmd.exe from a system folder.
AZJIO Posted May 8, 2013 Author Posted May 8, 2013 rudi, In help is not written that I have to update the environment variables. My other projects or all
Moderators Melba23 Posted May 8, 2013 Moderators Posted May 8, 2013 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
AZJIO Posted May 8, 2013 Author Posted May 8, 2013 (edited) Melba23,1. I do not want to change the variable globally2. If EnvSet must be accompanied by calling EnvUpdate, this should happen automatically3. That does not change. Will start cmd.exe from a system folder. Edited May 8, 2013 by AZJIO My other projects or all
Moderators Melba23 Posted May 8, 2013 Moderators Posted May 8, 2013 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
KaFu Posted May 8, 2013 Posted May 8, 2013 Maybe post contains what you're looking for. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
JFX Posted May 8, 2013 Posted May 8, 2013 (edited) CreateProcess function%Path% is the last thing that is used in the search for a program Edited May 8, 2013 by JFX
AZJIO Posted May 8, 2013 Author Posted May 8, 2013 (edited) 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 May 8, 2013 by AZJIO My other projects or all
LarryDalooza Posted May 8, 2013 Posted May 8, 2013 Works exactly as thw Windows API it was ported from... EnvSet("PATH", "C:\Boot") MsgBox(4096,"",EnvGet("PATH")) AutoIt has helped make me wealthy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now