Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.07 KB

File metadata and controls

36 lines (24 loc) · 1.07 KB

Powershell / CMD commands

Extract .msi from .exe file

<file.exe> /s /x /b"<target-folder>" /v"/qn"

(Source)

Run .sh script using git-bash from cmd or PowerShell

## In PowerShell run:
cmd /c '"C:\Program Files\Git\git-bash.exe" /c/Temp/test.sh'

## In cmd run:
"C:\Program Files\Git\git-bash.exe" /c/Temp/test.sh

Optional parameters for the git-bash might be --login -i -c (-i to indicate interactive mode, -c to indicate working directory).

A test.sh might look like this:

#!/bin/bash

echo "--> Tada! This message is from within the test.sh file. <--"
date > ./new_file.txt

(Source and additional information about using the windows task scheduler)