Skip to content

Instantly share code, notes, and snippets.

View NazmusLabs's full-sized avatar

Nazmus Shakib Khandaker NazmusLabs

  • Montreal, Quebec
View GitHub Profile
@JonasGroeger
JonasGroeger / Rename-Me-To-Match-Your-PS1-File
Last active May 26, 2023 11:18
Generic .bat file to launch .ps1 file with same name in same directory. Example: You have "start.ps1" to do something. Download this Gist and save as "start.bat". The latter will launch "start.ps1" by double-clicking.
@echo off
setlocal
REM Generic .bat file to launch .ps1 files.
REM Name the .bat file like the .ps1 file and you are done.
set this_file_no_extension=%~n0
set ps1_file=%this_file_no_extension%.ps1