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.

Share mounting via batch script cannot be scheduled

Featured Replies

Hi there,

I'm trying to execute the following batch BEFORE a Filemaker script :)

@ECHO OFF

net use L: sharefolder /user:myUser "myPassword"

pause

Note that, the user i'm using to mount the share has full privilege.

I have to mount a share in order to export periodically a .xls via a Filemaker script.

[color:red]THE PROBLEM IS that when the scheduler starts the batch, it says "processing" (or "Wird ausgeführt", I'm using the german version of FMS) and nothing happens. Seems that he cannot execute the command "mount".

Any idea ? Thanks in advance !

Flo

This is a weak area for me, but we use a NAS drive and use a Send Event script for mounting and unmounting it (on the client, however, not FMS).

The contents of the Send Event are:

NET USE W: NAS-1WEBDOCS 1234567890 /User:NasDocs /Persistent:No

Server may not be able to "see" the shared volume.

hth,

Barbara

  • Author

Thank you for your answer Barbara. The thing is that the command "Send Event" is not supported in a FMS scheduled script. So I can't use it...

I think that the only option would be to mount the share through a batch file (or whatever script language) before the execution of the Filemaker script.

I'm still digging around .....

Edited by Guest

Understood. As I said, we use this on the client.

How about exporting to the FMS Documents folder, and then use a batch file to move it to the share. Why not keep the share mounted at all times?

What is it that you want to do with the mounted volume? If all you need to do is copy to and from that network volume you do not need to mount it or map it as a drive letter. You can just use the UNC format to touch it:

shareNamefolderName

as long as you execute your OS-level script with credentials that have rights on that share.

Remember that FMS runs as Local Service (on Windows) and that by definition does not have rights outside of its own machine. Which is why both the Windows Task Scheduler and the FMS11 scheduler allow you to enter different credentials for scheduled tasks.

Wim,

Can I copy/write to a NAS volume without a mount/unmount on a client?

Barbara

  • Author

Thank you for both of your answers !

@ Barbara : I though about the solution with the batch file, but it's not very clean :s ...

@ Wim : Yep, that's the problem indeed. I need a user with the privileges to perform the task. (I created one which should work by the way).

And it's why I wanted to mount the volume, using the privileges of the new user.

I am kind of stuck right now. The thing is : Whenever I try to make a script-sequence with in first position the batch, and in second position the FM Script, it doesn't work ! (FMS get stuck while try to perform the batch (which is correctly written)

I will try once again with the new User i created...

Cheer,

Flo

You should, as long as it has a shared folder (and it would). Just use the UNC syntax of the share (like in my previous post).

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.