lee321987 Posted February 1, 2020 Share Posted February 1, 2020 Hello. Is this semicolon intentional? Link to comment Share on other sites More sharing options...
Nine Posted February 1, 2020 Share Posted February 1, 2020 It is because there is a ; at the end of your environment PATH ? Mine's fine... lee321987 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
lee321987 Posted February 1, 2020 Author Share Posted February 1, 2020 Sorry - it's working as expected now. I'm CERTAIN i checked both of these in the registry: HKEY_CURRENT_USER\Environment\Path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment and saw no semicolon, but I've been messing with %PATH% so I'm sure it was my fault. Anyway, thank you. Link to comment Share on other sites More sharing options...
Musashi Posted February 1, 2020 Share Posted February 1, 2020 Although the problem has been clarified in the meantime, here is an example of output using CMD and EnvGet. #include <Constants.au3> Global $PID = Run(@ComSpec & " /c echo %PATH%", @SystemDir, @SW_HIDE, $STDOUT_CHILD) Global $SLine While True $SLine &= StdoutRead($PID) If @error Then ExitLoop Wend ConsoleWrite("CMD : Path= " & $SLine) ConsoleWrite("EnvGet : Path= " & EnvGet("PATH") & @CRLF) "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
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