w10install/tools/personalfiles.cmd
Michael H.G. Schmidt 3621589964 .
2022-12-18 16:30:08 +01:00

42 lines
993 B
Batchfile

@echo off
rem ===================
rem GLOBAL VARS
rem ===================
set TOOLS=c:\tools
set PERSONALFILES_DONE=%LOCALAPPDATA%\.personalfiles_done
rem already done ?
if EXIST %PERSONALFILES_DONE% GOTO END
echo ####### %0 #######
echo copying ini file for TOTALCOMMANDER ...
if EXIST %TOOLS%\personal\WINCMD.ini (
copy /Y %TOOLS%\personal\WINCMD.ini %APPDATA%\GHISLER
)
echo copying TOTALCOMMANDER ftp config file ...
if EXIST %TOOLS%\personal\wcx_ftp.ini (
copy /Y %TOOLS%\personal\wcx_ftp.ini %APPDATA%\GHISLER
)
rem SSH keys ...
if EXIST %TOOLS%\personal (
echo copying personal SSH keys ...
copy /Y %TOOLS%\personal\id*.* %USERPROFILE%\.ssh 2>nul
)
rem GIT
if EXIST %TOOLS%\personal\gitconfig (
echo copying gitconfig ...
copy /Y %TOOLS%\personal\gitconfig %USERPROFILE%\.gitconfig
)
rem create a statusfile (this codeblock must be executed only once per user) ...
echo 1 >%PERSONALFILES_DONE%
:END
echo ####### %0 #######