this error happens when I use this batch at the startup of winpe
Code: Select all
setx mycd "Y:"
setx PATH "%PATH%;d:\Programs\dcrypt" /M
START /B reg.exe add "HKCU\Environment" /v mycd /t REG_SZ /f /d "Y:"
xyplorer.exealso without this batch portable XY starts normally
So is this something wrong with XY or just because I don't run it on normal windows?
---------
update:not xy fault
https://superuser.com/questions/130029/ ... t-variable
If the environment variable is set by another application and is not being updated, it is often easiest to either restart the "explorer.exe" process, log out and back in, or reboot. Essentially, you just need to tell explorer to reload the environment variables. If it is an application that you have developed, such as an installer, ensure that it is calling SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment");. This tells explorer to refresh its cache of the environment variables.
This is important because applications launched by another process inherit their environment variables from their parent. As such, if you launch cmd from explorer, you get the variables as explorer sees them.
XYplorer Beta Club