randalldale Posted December 25, 2008 Share Posted December 25, 2008 Hi guys,I was just wondering is there a way to post the file name or a message inside the imagex /apply command?I'm running HTA's for installing and when I apply a .WIM file I would like to post something in the cmd window if that is possible. Here is one of my 'Apply' lines...objWShell.Run "cmd /c imagex /apply z:\Sources\drivers.wim 8 c:",1, TrueThanks for the help,Randall Link to comment Share on other sites More sharing options...
bj-kaiser Posted December 25, 2008 Share Posted December 25, 2008 windows supports command concatenation with "&" or "&&".This allows you something like this:cmd /c "imagex /apply ...&& type success.txt"cmd1 & cmd2:in this case cmd2 will always be run after cmd1, no matter if it was successful or notcmd1 && cmd2:in this case cmd2 will only run if cmd1 was run successfully. 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