See the STAF Help forum entry titled "STAF as service cannot access 
network" from 2008-02-01 at 
http://sourceforge.net/forum/message.php?msg_id=4755080 for more 
information.  It says:

Applications started as Windows services cannot access mapped drive 
letters. See the following Microsoft Windows article: 
http://support.microsoft.com/kb/180362 
 
Instead you should use the UNC name to access the remote resource. For 
example, if you normally would map the network drive like: 
 
  net use X: \\mylocation\testbuilds
 
the UNC would be \\mylocation\testbuilds 
 
Note though that this won't work if the STAF service was configured (in 
Service Properties) with "Log on as:" set to "Local System account". The 
"Log on as:" setting must be set to "This account" with the Admin user and 
password.  The you should be able to access the UNC name via STAF: 
 
C:\>STAF <remote-machine> FS LIST DIRECTORY \\mylocation\testbuilds 
Response 
-------- 
test.exe 
install.txt 
 
If you did not want to hardcode the UNC name you could set up a STAF 
variable for it (e.g. in the STAF.cfg file): 
 
SET SYSTEM VAR XDRIVE=\\mylocation\testbuilds 
 
And then you could use the variable reference: 
 
C:\>STAF <remote-machine> FS LIST DIRECTORY {XDRIVE} 
Response 
-------- 
test.exe 
install.txt 


--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




[EMAIL PROTECTED] 
10/13/2008 09:37 AM

To
[EMAIL PROTECTED]
cc

Subject
Uncaught bounce notification






The attached message was received as a bounce, but either the bounce
format was not recognized, or no member addresses could be extracted
from it.  This mailing list has been configured to send all
unrecognized bounce messages to the list administrator(s).

For more information see:
https://lists.sourceforge.net/lists/admin/staf-users/bounce


----- Message from [EMAIL PROTECTED] on Mon, 13 Oct 2008 10:09:07 
-0400 -----
To:
<[EMAIL PROTECTED]>
Subject:
STAF service and network drive mapping... 
Hi All,

I have installed STAF as a service on Windows. It works fine for me, but
the problem is that, I have to map a network drive which should be
accessible to staf service.
Even if I map it manually after logging into the machine, the mapping is
not available to the staf service as staf service is running in a
different user session. 

For example, I need to map my X: drive to location
\\mylocation\testbuilds and should be able to list the files  in X:
using STAF remotely immediately after I reboot the machine. 

Any clues??

Many thanks,
Saneesh Joseph



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to