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.

File List from Share (windows)

Featured Replies

I am working on solving an issue that requires me to list all of the files in a share.  I am hoping to use a command like :

ListAllFilesInDirectory( $Path ) 

But I am running in to issues.

My FileMaker server is running on a windows server and I can not for the life of me get it to list the files from the share. 

I have tired \\Computer name\Share Name, filewin:\\Computer name\share name, I have tried mapping the share to a drive letter, and even creating a symbolic link to the share. The drive letter and link both work from file explorer or terminal, but I can not get it to work with the "ListAllFilesInDirectory( $Path )". 

Any help would be greatly appreciated. 

Thank you!

-=fred=-

I don't use the 360works plugins so can't tell you which script commands to use.

The problem you're (most likely) encountering is that both your server desktop and terminal are running in the userspace of the user your logged in as. Filemaker server doesn't run in that userspace. Therefore the driveletters (and credentials) that you use in your userspace are not available to filemaker server.

To make this work, you first have to connect to the remote shares with valid credentials from the script environment when the script is running. So basically you need to run a 360works plugin script step that will allow you to either invoke the net use command or invoke a command shell that allows you to invoke the net use command.

Net use \\Server\share\ F: password /user:username

Then you should be able to access the share and get a listing. I think send event should also work, though I usually use BaseElements for stuff like this.

Hello,

Thank you, OlgereDiekstra, for sharing that insight about the userspace.

ScriptMaster includes a function, RunShellScript, that could allow you to connect to the remote Share through the script if the userspace context/authentication is the issue.

However, to diagnose the reason ListAllFilesInDirectory is not working, could you please reproduce the issue, then locate the log file generated by our plugin, and attach that to this thread? You can reference our docs at the link below to locate the log file.

http://docs.360works.com/index.php/Plugin_log_files

  • Author

I also tried the RunShellScript and got the same results. I then tried using a batch script before the script ran and again it did not work. 

 

So for now I have the batch script dumping the file list to a text file that I am importing in to my solution and getting the names from that.

Thank you for looking in to this!

360Plug-ins_Server.log 360Works_ScriptMaster_Server.log

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.