Network drive

3495
3
06-03-2015 04:31 PM
DonStazic
New Contributor II

Hi there,

Currently in a python script I'm accessing a network drive using something like the following -

filePath = r"N:\EPA\ ...\file\\"

Not all the users though may have mapped that drive to N:

In Windows Explorer the drive appears similar to this -

Group (\\aaaap01.bbb.int) (N:)

What should I set filePath to without using N:

Thanks,

Don

0 Kudos
3 Replies
DonStazic
New Contributor II

The path wasn't exactly what I thought it was. All's good now.

0 Kudos
by Anonymous User
Not applicable

Hi Don,

Try using the UNC path like the following:

env.workspace = r"\\katie\share\FGDB.gdb"

The syntax is like the following:

  • \\server\shared folder\file_path

Please let me know if this was helpful!

DonStazic
New Contributor II

Thanks Katie. A little after I posted that was exactly what I did. Works fine now.

0 Kudos