Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Share mounting via batch script cannot be scheduled


This topic is 5193 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted (edited)

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
Posted

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?

Posted

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.

Posted

Wim,

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

Barbara

Posted

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

Posted

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).

This topic is 5193 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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