We help IT Professionals succeed at work.
Get Started

Python cgi script can't copy to or modify items on file server

Last Modified: 2014-08-22
I'm working on an application to be used on our intranet.  It needs to be able to create directories and move files to our file server (N:), and to eventually modify them.  Currently, I'm testing it using IIS (localhost) on my computer.  I'm a novice at IIS by the way.   Okay, I'm using a python cgi script and it is unable to do this...
driveLetter = r'N:'
    picDir = os.path.join(driveLetter,r'FieldPics') #set output directory as N:\FieldPics   
    picCountyDir = os.path.join(picDir, str(county[0])) #set output directory as N:\FieldPics\CountyName 
    if not os.path.exists(picCountyDir):
        os.makedirs(picCountyDir) #if necesssary create the county directory inside the N:\FieldPics directory

Open in new window

It tells me, "The system cannot find the path specified."   I have given IUSR and NETWORK SERVICE full control of N:\FieldPics.  I'm unable to figure out what I need to do next.
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE