casual migrate to powershell

This commit is contained in:
2025-10-07 22:36:04 +03:00
parent 07e27e87e2
commit e727fe174e
39 changed files with 167 additions and 24 deletions
+27
View File
@@ -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