[python-win32] win32 Service and Networkdrive Trouble...

Sean null-python-win32 at tinfoilhat.ca
Thu Aug 28 10:24:05 EDT 2003


->Almost everything works fine, as long as I use the Python interactive
->commandline or the script itself for testing. Run as service, the script
->cannot find the specified Path - neither if the script is started as
->user 'SERVICE' nor in any other Account. The eventlog shows the
->following errormessage:
->
I'm pretty new to python (and Windows coding for that matter) but one
thing I found out is that under windows Window's mapped drives are
dependant on the 'user profile.'  This may be part of the problem (unless
I completely misread your post).  My approach to a problem of mapping
drives remotely was to use the psexec application and use the 'net'
commands but I found deleteing shares just wouldn't be allowed and
creating shares were only temporary until the machine rebooted (despite
the persistent flag).  I've also tried running programs remotely which use
network shares and that just doesn't work either.

I know you are getting a file remotely but a service may not have network
maps available to it due to the profile restrictions.

In general for network apps I found a push is better than a pull.  What I
mean is that is less problematic to have the client drop files to the
machine that deals with them instead of the 'server' application running
around looking for the files.

While this might not solve your problem it is something to think about in
terms of design.  Then again, I could be approaching the whole problem
wrong.

-- 
Sean




More information about the Python-win32 mailing list