Repository navigation
- #34: possible to adjust MAX_PATH?
Now the process that handles the shell extension always has the environment variableARGS_FILEset to teh text file containing all selected items.
Examples of command script files
- 00.TestLongSelection.cmd (00.TestLongSelection.bat)
my_app.exe %ARGS_FILE%
- 00.TestLongSelection.ps1
# Expand the environment variable $argsFilePath = [Environment]::ExpandEnvironmentVariables("%ARGS_FILE%") # Check if the file exists if (-not (Test-Path $argsFilePath)) { Write-Error "File not found: $argsFilePath" exit 1 } # Read and print every line Get-Content $argsFilePath | ForEach-Object { Write-Output $_ }