Skip to content

Run a batch file from TS

Featured Replies

I'm trying to run a batch file from within a package during a TS OSD.

 

Command Line: "%~dp0scripts\delete_icons.bat"

 

Package: [scripts]-Production

 

In the error log (smsts.log) I see a "The system cannot find the file specified. (Error: 80070002; Source: Windows)

 

What is wrong?

Try it without the ""%~dp0" variable. You shouldn't need this in the TS, just the script file itself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.