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.

Paths for WriteFile?

Featured Replies

Hi

I've been trying to use the writefile function to write a file out to the root directory on a Windows server running FMSA9 with IIS.

The path to this directory is C:Inetpubwwwroot

But I am not clear as to what the exact string should be to acheive this that I should pass as a parameter to writefile.

In the Scriptmaster example for this, the test path given is /tmp/whatever.txt

Can someone tell me what the correct syntax should be for a path in a Windows environment to get a file written out to the Web server directory as above?

It's not clear whether the volume needs to be included in the path, whether to use / or in a Windows environment, and what the base directory should be from which a relative path should be supplied - or even if writefile supports relative or non-relative paths.

My questions are:

1) Path

So, which of the following should be passed?

C:Inetpubwwwrootwhatever.txt

Inetpubwwwrootwhatever.txt

C:/Inetpub/wwwroot/whatever.txt

/Inetpub/wwwroot/whatever.txt

??

2) Permissions:

Also, are there/will there be any permissions involved when I do this - or will ScriptMaster running as a plugin under FMSA9 on a Windows server write the file into this directory without any issue?

Many thanks - I've scoured the ScriptMaster documentation but can't find anything about running in a Server environment as far as paths and permissions are concerned, or any distinction between Windows and Macintosh path syntax, construct or base directory.

It would also be helpful to know exactly what path I should pass if I want to write the file under FMSA9 running on a Mac Server to the Documents folder in WebServer in Library and whether there are any permissions issues involved in this scenario?

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.