August 24, 201015 yr 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
August 24, 201015 yr 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
August 24, 201015 yr 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 August 24, 201015 yr by Guest
August 26, 201015 yr 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?
August 29, 201015 yr 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.
August 29, 201015 yr Wim, Can I copy/write to a NAS volume without a mount/unmount on a client? Barbara
August 30, 201015 yr 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
September 4, 201015 yr 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