The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
I am trying to create a custom action to open windows explorer in my current sandbox location. I can't see to figure out how to specify the sandbox path in the Custom Action view. Is this possible?
Hi Steve,
We did the following:
- code a custom Java Application and start it via a custom Button. It must not be in Java, any language you like will do, but due to the Integrity Java API I think JAVA suits best 😉
- In the Application or scrip you have to read the process's environment Variables to get the current selection from the GUI. This gives you among others the Files System Path of the selected sandbox.
- if you have Files System Path simply call an Explorer or what ever tool you like
HTH
We wrote a batch and then we called this batch without any parameter in a custom action:
set WIN=%MKSSI_WINDOW%
set SUBPROJECT=%MKSSI_SUBPROJECT1%
set SMEMBERPATH=%MKSSI_MEMBER1_SANDBOX%
set SBOXPATH=%MKSSI_SUBPROJECT1_SANDBOX%
set NMEMBER=%MKSSI_NMEMBER%
set NSUB=%MKSSI_NSUBPROJECT%
set NFILE=%MKSSI_FILE%
if %WIN%==sandbox GOTO P0
:P0
if %NMEMBER%==0 GOTO P1
if %NMEMBER%==1 GOTO P2
:P1
if %NSUB%==1 GOTO P3
if %NSUB%==0 GOTO P4
:P2
set x=%SMEMBERPATH%
set x=%x:project.pj=%
echo %x%
explorer.exe %x%
GOTO END
:P3
set x=%SUBPROJECT%
set x=%x:/=\%
set x=%x:project.pj=%
echo %x%
explorer.exe %x%
GOTO END
:P4
set x=%NFILE%
set x=%x:project.pj=%
echo %x%
explorer.exe %x%
GOTO END
:END
kind regards, Jens