Chrisjon Posted November 21, 2008 Posted November 21, 2008 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?
Recommended Posts
This topic is 5857 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 accountSign in
Already have an account? Sign in here.
Sign In Now