w10install/tools/personalfiles.cmd

42 lines
993 B
Batchfile
Raw Normal View History

2022-12-18 16:10:09 +01:00
@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 #######
2022-12-18 16:30:08 +01:00
echo copying ini file for TOTALCOMMANDER ...
2022-12-18 16:10:09 +01:00
if EXIST %TOOLS%\personal\WINCMD.ini (
copy /Y %TOOLS%\personal\WINCMD.ini %APPDATA%\GHISLER
)
2022-12-18 16:30:08 +01:00
echo copying TOTALCOMMANDER ftp config file ...
2022-12-18 16:10:09 +01:00
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 #######