I just started playing around to Batch scripts and I was wondering if anybody who is familiar with bash or scripting can give me a great reference.
Right now, I am trying to run DiskPart, but another window pops up for it. Can I pass commands to it so it is automated and close out of it automated?
I was also wondering if it is possible to silently run exe files with a Bash script (e.g. install a JRE) and also run multiple EXE files?
Thank you!!
It is a question? Did you try to call
diskpart /??The answer is
diskpart /s "full_path_to_diskpart_script_file"Where
full_path_to_diskpart_script_fileis plain text file with DiskPart commands.Another question? Look at
start /?For example, you may run from batch
start /min "Installing JRE" "full_path_to\jre-7u5-windows-x64.exe" /sJRE Installer Options