Notifications
Clear all

[Closed] Question about "getDir"

Is it possible to get files from a network folder instead, using getDir?

right now I’ve got this:

image = (getFiles (getDir #maxRoot + \images\*.bmp”))

which works for my local drive. But I want it to look in a specific folder on the network.

\servername\projectfolder\user\

I’m new at this so I’m not sure how to go about this?

4 Replies

GetDir <filetype_name>
Returns as a string the directory specified in the Customize > Configure Paths dialog for the specified file type.
You shouldn’t need getdir to point to a directory, since it is only provided for easy access to max directories. Just go straight to the path, ex:
image = (getFiles ( “\\servername\projectfolder\user\images\*.bmp”))

-Eric

excellent, PiXeL_MoNKeY, many thanks. I totally forgot about the \\ to.

-cheers

In strings every \ becomes \ so \ becomes \\. I once had to have \\\\ for \, still not sure why I did, but that made it work.

-Eric

image = (getFiles ( "//servername/projectfolder/user/images/*.bmp"))

I find forward slashes works better, because when I switch programming langauges I don’t have to worry how that langauge handles string escapes.