Forum Discussion
Shortcut pointing to Batch script (.bat file) - PSF Tool not worked.
- PollewopsSep 15, 2021Iron ContributorI got it working now. I guess it is a bug, but when you configures a startscript in the config.json it starts working.
- 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?