MioKawaii Posted February 27, 2006 Share Posted February 27, 2006 Anybody know how to keep the "%%1 (Double precent)" when echoing from cmd to another cmd? Link to comment Share on other sites More sharing options...
Yzöwl Posted February 27, 2006 Share Posted February 27, 2006 A better explanation of your requirements with existinfg code etc. would prove beneficial for responders.In the mean time, since percent is a special character, it will require escaping, with either additional percent characters or carets. Link to comment Share on other sites More sharing options...
MioKawaii Posted February 27, 2006 Author Share Posted February 27, 2006 A better explanation of your requirements with existinfg code etc. would prove beneficial for responders.In the mean time, since percent is a special character, it will require escaping, with either additional percent characters or carets.I'm trying to remove as many CMDs as possible for easy management. Thus it start with the 13min.cmd.13min.cmdECHO 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:\ExpertToolz.IMA SET CDROM=%%i: >> %SystemDrive%\Install\RunOnceEx.cmd Link to comment Share on other sites More sharing options...
Yzöwl Posted February 27, 2006 Share Posted February 27, 2006 This single line should do what you intended:>>%SystemDrive%\Install\RunOnceEx.cmd ECHO/FOR %%%%? 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 %%%%?:\EXPERTTOOLZ.IMA (SET CDROM=%%%%?:) Link to comment Share on other sites More sharing options...
Zxian Posted February 27, 2006 Share Posted February 27, 2006 Moved to Programming. 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