Forum Discussion
Shortcut pointing to Batch script (.bat file) - PSF Tool not worked.
- Siva116Sep 16, 2021Brass ContributorHi @ Pollewops
If possible, could you please paste or attach that config.json file for reference.. I would like to try it.
Thanks in Advance.- PollewopsSep 16, 2021Iron Contributor
Try this config.json file to start the test.bat file. Create a dummy AppLauncher.ps1 and put that one in the root of the package.
{
"applications": [
{
"id": "PSFLAUNCHERSIXFOUR",
"executable": "VFS\\ProgramFilesX64\\Test\\cmd.exe",
"arguments": "\/c VFS\\ProgramFilesX64\\Test\\test.bat",
"workingDirectory": "",
"stopOnScriptError": true,
"startScript":
{
"scriptPath": "AppLauncher.ps1",
"scriptArguments": "",
"runInVirtualEnvironment": true,
"showWindow": false,
"waitForScriptToFinish": true,
"runOnce": false
},
"endScript":
{
"scriptPath": "AppLauncher.ps1",
"scriptArguments": "",
"runInVirtualEnvironment": true,
"showWindow": false,
"waitForScriptToFinish": true,
"runOnce": false
}
}
]
}i put the cmd.exe in the package. This to be able to start the script in the bubble. If i used c:\windows\system32\cmd.exe it runs outside the bubble. Also to let the cmd.exe work correctly, a subfolder en-us with cmd.mui.exe is required.
@tmangan is this expected behavior?
- Sep 16, 2021
Siva116 If you could post your bad version, that would be helpful. I've been working on some PSF FRF issues seen in your Java App and plan to hit up scripting issues in the Launcher before releasing.