command prompt - How to create batch file? -
i need run below command command prompt. how make batch file not have type whole command again?
c:\program files (x86)\microsoft ajax minifier\ajaxmin.exe c:\css\reset.css c:\css\main-styles.css c:\css\lightbox.css c:\css\shortcodes.css c:\css\custom-fonts.css c:\css\custom-colors.css c:\css\admin_menu.min.css -out c:\css\mc.css -clobber
add >"file.bat" echo
start of command create simple batch file.
quotes around paths , filenames spaces , &
characters needed too.
>"file.bat" echo "c:\program files (x86)\microsoft ajax minifier\ajaxmin.exe" c:\css\reset.css c:\css\main-styles.css c:\css\lightbox.css c:\css\shortcodes.css c:\css\custom-fonts.css c:\css\custom-colors.css c:\css\admin_menu.min.css -out c:\css\mc.css -clobber
in cases characters need escaping example work.
Comments
Post a Comment