casual migrate to powershell
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=AIMP"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
if "%1"=="" goto reconnect
|
||||
if /I "%1"=="disconnect" goto disconnect
|
||||
if /I "%1"=="connect" goto connect
|
||||
|
||||
:disconnect
|
||||
rd /Q "%to_1%"
|
||||
goto end
|
||||
|
||||
:connect
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
goto end
|
||||
|
||||
:reconnect
|
||||
rd /Q "%to_1%"
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
goto end
|
||||
|
||||
:end
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=KeePassXC"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=Playnite"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=Powertoys"
|
||||
|
||||
set "from_1=%storage%\%app%\%computername%"
|
||||
set "to_1=%localappdata%\Microsoft\PowerToys"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=Sublime Text"
|
||||
|
||||
set "from_1=%storage%\%app%\Config"
|
||||
set "to_1=%AppData%\%app%"
|
||||
set "from_exe_1=%storage%\%app%\Patched\Windows\sublime_text.exe"
|
||||
set "to_exe_1=%ProgramFiles%\%app%\sublime_text.exe"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=SumatraPDF"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%localappdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=Syncthing"
|
||||
|
||||
set "from_1=%storage%\%app%\%computername%"
|
||||
set "to_1=%localappdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=transmission"
|
||||
|
||||
set "from_1=%storage%\%app%\%computername%"
|
||||
set "to_1=%localappdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=VSCodium"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=gramps"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=ludusavi"
|
||||
|
||||
set "from_1=%storage%\%app%\cfg"
|
||||
set "to_1=%appdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "app=v2rayN"
|
||||
|
||||
set "from_1=%storage%\%app%"
|
||||
set "to_1=%localappdata%\%app%"
|
||||
|
||||
rd /q "%to_1%"
|
||||
|
||||
mklink /D "%to_1%" "%from_1%"
|
||||
endlocal
|
||||
Reference in New Issue
Block a user