Newbies Harry Gibson Posted September 14, 2007 Newbies Posted September 14, 2007 I've got a script to import data from a text file. It's just one record at any one time, and the script is working fine using the Import Records command and a file path such as file:../ImportThis.txt However this system will be used by a number of different windows users, and the database won't necessarily always be in the same directory as the import text file. What I'd like to do is have the text file in the windows user's home directory (c:Documents and SettingsUser Name). This is referred to by the windows environment variable %USERPROFILE%. So in theory in Filemaker I could then get the script to look at the path %USERPROFILE%/ImportThis.txt However, I can't seem to get this to work - it cannot find the file. Can filemaker access the windows environment variables in this way? If not then what other options do I have? (The database user's name is not necessarily that of the Windows user - it is the Windows username that I want to use) Many thanks! Harry
cjaeger Posted September 14, 2007 Posted September 14, 2007 in FMP9 you should be able to get the User's home Directory with a status function. Include it in the path with a variable.
Newbies Harry Gibson Posted September 14, 2007 Author Newbies Posted September 14, 2007 As easy as that! I thought it should be. Thanks very much. Harry
Recommended Posts
This topic is 6627 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