#206164 - 2012-11-08 11:05 PM
Re: all new 2 me, much to learn but need help now pls
[Re: Scriptless_1]
|
Scriptless_1
Fresh Scripter
Registered: 2012-11-06
Posts: 5
Loc: Oklahoma City, OK, 73159
|
Almost HOME, Thanks DOC, Shane and Les. I am able to successfully run the utility using the script. . . (at last finally submitted here in code, yea!)Thank you again for your patience and assistance.
Like I said, the utility finally runs, but it has global effect, I am not yet able to get the If InGroup ("PrintMig") to work. I enter the command and it will wants something . . . a command such as Run etc, either immediately after the commnet or when i select enter, at shfit-return the next line indents and prompts for something.
HELP NEEDED HERE PLEASE> > > At lines 35-37, Between the If InGroup ("PrintMig")and the If Not @LogonMode command something must go there to make the transition, I duno? Additionally, I have replaced the previous PrintMig Distribution Directory Object with a Security Group-Domain Local object of the same name and have added test members. . . . no luck
?
?("*******************************************************************************");
?(" Logon Domain: ") (%USERDOMAIN%);
?(" Logon Server: ") (%LOGONSERVER%);
?(" Username: ")(%USERNAME%);
?(" Workstation: ")(%COMPUTERNAME%);
?("*******************************************************************************");
?
?
?
?("Now Mapping User H Drive")
Use H: /delete /persistent
Use H: "\\servername\sharename\%USERNAME%"
?("The Command Completed Successfully")
?
?("Now Mapping R Drive")
Use R: /delete /persistent
Use R: "\\servername\sharename"
?("The Command Completed Successfully")
?
?("Now Mapping S Drive")
Use S: /delete /persistent
Use S: "\\servername\sharename"
?("The Command Completed Successfully")
?
?("Now Mapping Forms T Drive")
Use T: /delete /persistent
Use T: "\\servername\sharename"
?("The Command Completed Successfully")
?
use I: /delete /persistent
Use I: "\\servername\sharename"
?("The Command Completed Successfully")
?
If InGroup "PringMig" it wants something here or
here ******************** THIS IS WHERE IS HURLS ***********************
If Not @LogonMode
Break On
EndIf
Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('NoMacrosInStrings','On')
$SO=SetOption('WrapAtEOL','On')
?
?
Dim $Folder
$Folder='C:\logfile\'
;Check if the folder exists, if not create it otherwise continue on.
If GetFileAttr($Folder) & 16
;Folder found do nothing
Else
MD $Folder
If @ERROR
Quit @ERROR
EndIf
EndIf
?
Copy "I:\Printmig\*.*" "C:\logfile\*.*"
Shell "C:\logfile\printmig330a.exe /all
|
|
Top
|
|
|
|
all new 2 me, much to learn but need help now pls
|
Scriptless_1
|
2012-11-07 10:53 PM
|
Re: all new 2 me, much to learn but need help now pls
|
ShaneEP
|
2012-11-08 12:24 AM
|
Re: all new 2 me, much to learn but need help now pls
|
Scriptless_1
|
2012-11-08 03:01 PM
|
Re: all new 2 me, much to learn but need help now pls
|
ShaneEP
|
2012-11-08 04:52 PM
|
Re: all new 2 me, much to learn but need help now pls
|
Les
|
2012-11-08 07:06 PM
|
Re: all new 2 me, much to learn but need help now pls
|
Scriptless_1
|
2012-11-08 08:16 PM
|
Re: all new 2 me, much to learn but need help now pls
|
Scriptless_1
|
2012-11-08 10:01 PM
|
Re: all new 2 me, much to learn but need help now pls
|
Scriptless_1
|
2012-11-08 11:05 PM
|
Re: all new 2 me, much to learn but need help now pls
|
Lonkero
|
2012-11-09 12:35 AM
|
Re: all new 2 me, much to learn but need help now pls
|
ShaneEP
|
2012-11-09 02:34 AM
|
Re: all new 2 me, much to learn but need help now pls
|
ShaneEP
|
2012-11-09 02:35 AM
|
Re: all new 2 me, much to learn but need help now pls
|
ShaneEP
|
2012-11-09 02:41 AM
|
Re: all new 2 me, much to learn but need help now pls
|
NTDOC
|
2012-11-08 12:58 AM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 525 anonymous users online.
|
|
|