Skip to content

Instantly share code, notes, and snippets.

@DavideC03
Last active October 31, 2020 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavideC03/bdd3b817de4778da647fd1244aa1fae4 to your computer and use it in GitHub Desktop.
Save DavideC03/bdd3b817de4778da647fd1244aa1fae4 to your computer and use it in GitHub Desktop.
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