Alan
Alan

Reputation: 9471

Batch for Automated Setup

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!!

Upvotes: 0

Views: 753

Answers (1)

Maximus
Maximus

Reputation: 10847

Can I pass commands to it so it is automated and close out of it automated.

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_file is plain text file with DiskPart commands.

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.

Another question? Look at start /?

For example, you may run from batch

start /min "Installing JRE" "full_path_to\jre-7u5-windows-x64.exe" /s

JRE Installer Options

Upvotes: 1

Related Questions