I made a batch file that calls c:\windows\explorer.exe with parameters
The script works fine, but even if the batch file only contains:
`explorer`
Source tree indicates: 'Completed with errors, see above.'
To recreate:
Create custom action
Set 'Script to run' to the batch file to be ran
In the batch file have one line command `explorer`
Set Parameters to `$REPO $FILE`
Here's my actual script I'm trying to run: (ExploreRepoFilePath.bat)
ECHO OFF
SET FullPath=%1\%2
SET DirectoryPath=%~dp2
if exist %FullPath% (
c:\windows\explorer.exe /select,%FullPath:/=\%
exit
)
if exist %DirectoryPath% (
c:\windows\explorer.exe %DirectoryPath%
exit
)
c:\windows\explorer.exe %1
EXIT /B 0