Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Created January 10, 2018 15:17
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 tomfanning/911361fa42a371dc58043c0b8cc7c18a to your computer and use it in GitHub Desktop.
Save tomfanning/911361fa42a371dc58043c0b8cc7c18a to your computer and use it in GitHub Desktop.
Replace VS2017 layout in-place
@echo off
rem A vs2017 folder must exist within this UNC
pushd %targetunc%
md %UserProfile%\Desktop\vs2017
copy vs2017\vs_professional.exe %UserProfile%\Desktop\vs2017
start /wait %UserProfile%\Desktop\vs2017\vs_professional.exe --layout %UserProfile%\Desktop\vs2017 --quiet
del /q /s vs2017
rd /q /s vs2017
robocopy /move /e %UserProfile%\Desktop\vs2017 vs2017 *
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment