Skip to content

Commit

Permalink
sort files
Browse files Browse the repository at this point in the history
  • Loading branch information
McAlec1 committed Jan 16, 2025
1 parent ded090b commit 8afa7ee
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
6 changes: 3 additions & 3 deletions start.bat → bin/start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ if exist %ProgramFiles%\PowerShell\7-preview\pwsh.exe (
:: start conhost.exe pwsh -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\bin\%FileName%
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\%FileName%
exit
) else if exist %ProgramFiles%\PowerShell\7\pwsh.exe (
:: tasklist /FI "IMAGENAME eq WindowsTerminal.exe" /FO CSV > %TMP%\search.log
:: FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO bb
:: start conhost.exe pwsh -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\bin\%FileName%
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\%FileName%
exit
) else if exist %windir%\System32\WindowsPowerShell\v1.0\powershell.exe (
:: tasklist /FI "IMAGENAME eq WindowsTerminal.exe" /FO CSV > %TMP%\search.log
:: FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO bb
:: start conhost.exe powershell -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\bin\%FileName%
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe %CurrentDir%\%FileName%
exit
) else (
echo PowerShell was not found.
Expand Down
16 changes: 0 additions & 16 deletions download.bat

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions online.bat → online/online.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ if exist %ProgramFiles%\PowerShell\7-preview\pwsh.exe (
:: start conhost.exe pwsh -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe pwsh -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online.ps1 | iex"
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe pwsh -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online/online.ps1 | iex"
exit
) else if exist %ProgramFiles%\PowerShell\7\pwsh.exe (
:: tasklist /FI "IMAGENAME eq WindowsTerminal.exe" /FO CSV > %TMP%\search.log
:: FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO bb
:: start conhost.exe pwsh -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe pwsh -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online.ps1 | iex"
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe pwsh -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online/online.ps1 | iex"
exit
) else if exist %windir%\System32\WindowsPowerShell\v1.0\powershell.exe (
:: tasklist /FI "IMAGENAME eq WindowsTerminal.exe" /FO CSV > %TMP%\search.log
:: FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO bb
:: start conhost.exe powershell -ExecutionPolicy Bypass -File %CurrentDir%\%FileName%
:: exit
:: :bb
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe powershell -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online.ps1 | iex"
taskkill /IM "WindowsTerminal.exe" /F & start conhost.exe powershell -ExecutionPolicy Bypass -Command "iwr https://git.mcalec.dev/gallerydl-pwsh/online/online.ps1 | iex"
exit
) else (
echo PowerShell was not found.
Expand Down
File renamed without changes.

0 comments on commit 8afa7ee

Please sign in to comment.