Eagle710 Posted December 2, 2009 Share Posted December 2, 2009 Does anyone know how to edit the command line PATH variable to include commands with just by calling the .exe from anywhere in the directory structure? This is of course in WinPE 2? Link to comment Share on other sites More sharing options...
MrJinje Posted December 2, 2009 Share Posted December 2, 2009 (edited) Here is a description of how they are added at runtime, I assume it should require you build you PE with the scripting environment if you have not already done so. These path variables will get reset each time the script is run. So be aware of that if you are writing multiple scripts that need these variables. They need to be specified in each script.It starts about a third the way down. The PATH Environment Variablehttp://vlaurie.com/computers2/Articles/environment.htmIf you read further in the thread it describes how to preset them via the registry. I assume this could be applied somehow into the HIVE's inside your PE.wim. Or integrated into your WIM via a registry setting .INF file. But it seems easiest just to set them at run-time.EDIT: On second read, I suggest this "path = %PATH%;newdir " or "path = %PATH%;C:\MyPath" as that is non-destructive to existing path variables. Edited December 2, 2009 by MrJinje Link to comment Share on other sites More sharing options...
Eagle710 Posted December 3, 2009 Author Share Posted December 3, 2009 MrJinje,Perfect, that registry key managed to do the trick and everything worked great.Thanks,Eagle 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