kmaheshkumar Posted November 5, 2015 Share Posted November 5, 2015 i want to make a new type of installation procedure for my work but i got stopped that my work place is allowing me to modify the iso files so i can only do unattended installation and setting by using firstlogoncommands i made some script to do work but everytime my dvddrive wont be with same name I need small help on command line for firstlogoncommands for %i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %i:\sources\sxs" set CDROM=%i: the above command works but is there any possibility that i can start a batch file from the same line? if it is possible i can do all my work without changing any iso files Link to comment Share on other sites More sharing options...
Tripredacus Posted November 5, 2015 Share Posted November 5, 2015 Yes you can start a .cmd/bat but it needs to physically exist. Here are 2 examples that may be helpful. Multiple FirstLogonCommandshttp://www.msfn.org/board/topic/139572-ask-your-seven-xml-here/page-4#entry951826Set variable on 1, command on 2http://www.msfn.org/board/topic/139572-ask-your-seven-xml-here/page-5#entry953464 Link to comment Share on other sites More sharing options...
kmaheshkumar Posted November 5, 2015 Author Share Posted November 5, 2015 (edited) i had not expected that it can store the variable for another instance and is there any RequiresUserInput to be true or false for this ? Edit: Just tested with it is not working variable is losing after instance Edited November 6, 2015 by kmaheshkumar Link to comment Share on other sites More sharing options...
kmaheshkumar Posted November 6, 2015 Author Share Posted November 6, 2015 (edited) this thing is working<CommandLine>cmd /c FOR %i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %i:\Settings.cmd Start %i:\Settings.cmd</CommandLine> instead of set CDROM start a batch file from there itself and change the driveletter using wmic in batch so we can assign runonce with that drive letter and it works perfectly if we changed the driveletter using wmic for the same drive where script is there it will work on the same drive letter until next restart Edited November 6, 2015 by kmaheshkumar 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