Skip to content

Commit

Permalink
113
Browse files Browse the repository at this point in the history
  • Loading branch information
beiranvand-karim committed Aug 25, 2024
1 parent 261627f commit b6d421b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

REM startup-open-directory
REM startup-open-directory.bat

Powershell.exe -ExecutionPolicy RemoteSigned -File "startup-open-directory.ps1"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STARTUP_DIRECTORY_LOCATION=
DIRECTORY_MANAGEMENT_EXECUTIVE_FILE_ADDRESS=
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<#> fina = file name = startup-open-directory.ps1 #>

get-content "startup-open-directory.env" | ForEach-Object {
$name, $value = $_.split("=")
set-content env:\$name $value
}

start-process -FilePath $env:DIRECTORY_MANAGEMENT_EXECUTIVE_FILE_ADDRESS -ArgumentList $env:STARTUP_DIRECTORY_LOCATION

0 comments on commit b6d421b

Please sign in to comment.