Network drive acces #326
Replies: 3 comments 6 replies
-
Your W: drive is a mapped drive, so it will only appear for the logged user while they're on the desktop (and in non-admin sessions if you left UAC enabled, it doesn't appear for the elevated sessions when something needs admin rights), you'll need to use the direct path, and I'm not sure how you'll do it in node.js, but also may need to provide the credentials for the path as well. |
Beta Was this translation helpful? Give feedback.
-
As @miquelfire stated, the user running the service needs read access to the If the account running the service does have permissions, there are other some other general things to be aware of. The wiki "My script runs fin on it's own but not with node-windows" section may provide help. |
Beta Was this translation helpful? Give feedback.
-
I continued my tests in order to better understand. If I run in service mode (just after creating the service) I have this information : As I have a difference I modified in the services management console the session connection parameter to use the same user as in command mode. |
Beta Was this translation helpful? Give feedback.
-
Hello
First of all thank you for this mod, it's exactly what I needed.
I developed a Node JS application that allows you to browse a folder and then send a file from this folder in FTP. If I run my application with the following command: node application.js :
If I run my application through a service :
I get an error
W:\my_folder\ Error: ENOENT: no such file or directory, scandir 'W:\my_folder\'
Does anyone have any idea why my application running as a service can't browse network drives...?
Beta Was this translation helpful? Give feedback.
All reactions