Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VMs automate process
@ECHO OFF
REM AutoRun for VMs communication by Castellani Davide
REM Put this only in client PCs, only normal execution (client)
REM Change direcoty
cd /|\folder/|\
REM Go to netinfo repo
CD netinfo
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\netinfo.py
REM Go to osversion repo
CD ./../../osversion
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\osversion.py
REM Go to ldisk repo
CD ./../../ldisk
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\lisk.py
REM Go to usb repo
CD ./../../usb
REM Make sute it's upgraded
git pull
REM Run code
REM For this repo we didn't need to run here, he will be all indipendency
@ECHO OFF
REM AutoRun for VMs communication by Castellani Davide
REM Put this only in masters PCs, other normal execution (client) this PC(s) will sync data to a MYSQL DB
REM Change direcoty
cd /|\folder/|\
REM Go to netinfo repo
CD netinfo
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\netinfo.py
REM Go to osversion repo
CD ./../../osversion
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\osversion.py
REM Go to ldisk repo
CD ./../../ldisk
REM Make sure it's upgraded
git pull
REM Run code
CD bin
py .\lisk.py
REM Go to usb repo
CD ./../../usb
REM Make sute it's upgraded
git pull
REM Run code
REM For this repo we didn't need to run here, he will be all indipendency
REM Go to sync repo
CD ./../sync
REM Make sure it's upgraded
git pull
REM Run code
CD bin
.\sync.bat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.