Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can i execute a batch script???

Featured Replies

HI guys,

i would like to run a script server side that will execute a batch script.

I would like to schedule the script from the server to find finalised orders on a db and loop through each record (finalised Order) running the batch script on each record. The batch script will create a directory for each finalised order on another server.

Thanks in advance.

The server is set up to perform OS level scripts via the built-in scheduler.

Steven

although the server can be scheduled to run batch scripts and one can now run certain scriptmaker scripts (web compatible) on the server. It's not clear to me that one could create a dynamic batch script to create folders using only web compatible script steps. One way that might work would be to use a server-compatible plugin to create the folders based on record values.

Although I usually opt to use a robot FMP client machine to perform such tasks.

Dana

  • Author

thanks for your replies.

The batch script needs to create a directory.

The directory needs to be named as per the Order Number of the finalised job. The Order Number resides on the FMPro database.

Is there a way i can pass this data (order number) from the FMPro db to enable the batch script to create the directory and name it as per the Order Number??

Thanks.

This won't work server-side only. Can't because it would be a huge security issue if it could.

What would come closest is using a dedicated FM client box as a robot, logged in with a Windows account that has the rights to create accounts on a shared folder and run a VBscript (not batch file) from there.

It would still be a security risk depending on who has access to that machine etc, but it could be done.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.