#193489 - 2009-04-17 02:58 PM
Newbie scripter needs help
|
dspace
Just in Town
Registered: 2009-04-17
Posts: 3
Loc: MA
|
The following dos commands work fine at the dos level and I have been trying to get them to work as a .kix file with no joy. I would appreciate any help or suggestions that will get me going. Thanks.
shell "cmd.exe /C IF EXIST L:\NUL net use L: /DELETE" shell "cmd.exe /C net use L: \\server\share password /USER:user /PERSISTENT:Yes" shell "c:\"Program Files\SecCopy\SecCopy.exe" /RunAllProfiles /ExitWhenIdle" shell "c:\windows\system32\shutdown.exe -s -t 300 -c 'Daily shutdown. To abort, double-click the Abort Shutdown icon.' -f"
|
Top
|
|
|
|
#193490 - 2009-04-17 03:06 PM
Re: Newbie scripter needs help
[Re: dspace]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
|
try this
shell 'cmd.exe /C "IF EXIST L:\NUL net use L: /DELETE"
shell 'cmd.exe /C "net use L: \\server\share password /USER:user /PERSISTENT:Yes"'
shell '"c:\Program Files\SecCopy\SecCopy.exe" /RunAllProfiles /ExitWhenIdle'
shell '"c:\windows\system32\shutdown.exe" -s -t 300 -c "Daily shutdown. To abort, double-click the Abort Shutdown icon. -f"'
|
Top
|
|
|
|
#193495 - 2009-04-17 04:56 PM
Re: Newbie scripter needs help
[Re: Richard H.]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
|
|
Top
|
|
|
|
#193566 - 2009-04-23 03:09 PM
Re: Newbie scripter needs help
[Re: Arend_]
|
dspace
Just in Town
Registered: 2009-04-17
Posts: 3
Loc: MA
|
You guys were a big help - thanks.
I'm still having a problem with the USE command.
I have:
Use L: '\\SERVER\share' /user:'USERID' /password:'password' /PERSISTENT
The password has an @ so I'm enclosing it in quotes. The user is straight text, but I'm enclosing it in quotes to try to solve the problem which is no matter what I do I get "unknown user or bad password". They really are the correct user and password.
Any thoughts? Thanks again.
|
Top
|
|
|
|
#193570 - 2009-04-23 05:26 PM
Re: Newbie scripter needs help
[Re: Mart]
|
dspace
Just in Town
Registered: 2009-04-17
Posts: 3
Loc: MA
|
Thanks!!!
Everything is working smoothly. I really appreciate all the help.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|