 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Jason Hoskins
Joined: 12 Mar 2004 Posts: 68
|
|
net use command |
|
I need to connect to a share on a separate domain with different credentials which does not have the trust allowing the service user to connect. I am trying to run the command using RunAndWait:
net use \\servername.domain.com\share password /USER:domain\userid
This works if I run it from the command prompt but if I run it from 24x7 (even through the GUI), the connection is not produced. Is there any way of connecting to a share use crednetials within a job?
Thanks for the assistance.
|
|
Mon Apr 30, 2007 8:28 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7970
|
|
|
|
Do you run it as a program type job or from a script job? If you do it from a JAL script, do you rember about special ASCII characters?
|
|
Mon Apr 30, 2007 9:28 am |
|
 |
Jason Hoskins
Joined: 12 Mar 2004 Posts: 68
|
|
|
|
I am doing it from a script job. Which ASCII characters are special besides the quotes? Should I put the command in a variable instead?
|
|
Mon Apr 30, 2007 9:36 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7970
|
|
|
|
Back-slash is an escape character indicating that the following character is special, e.g. \n, \r, \t, \\. Run your script in debugger or use the tracing feature to see what happens during the execution. Please see "Special ASCII characters" topic in the online help for more details.
|
|
Mon Apr 30, 2007 9:45 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|