Inherited the existing working login script below from previous admin, may or may not look good, but it works. Making it look better will have to come when I’ve learned much more. It’s all got to sound lame but my situation is as follows, pls forgive the ignorance, much to learn.

I need to add the commands to successfully run a printer migration utility called Printmig330a.exe using the /all switch.

Printmig330a.exe resides in the subfolder named PRINTMIG off the root of a drive mapped as I:
Within the same PPRINTMIG folder is a batch file that is currently being used to call Printmig330a.exe after it completes the series of instruction listed here.
md c:\logfile
copy I:\PrintMig\*.* c:\logfile
cd c:\logfile
dir>c:\logfile\mig1.log
dir>c:\logfile\mig.log
Printmig330a.exe /all

Additionally I have created an Active Directory Distribution Object named PrintMig that I will drop groups of users into to control the volume of users and data traffic at login.

I think I understand that the series of instructions called from the batch file routine can be done within the script itself without calling or using the batch file. I have tried to make this work both ways and am simply missing IT. I need to integrate it into the existing script below, If anyone can help please let me know.


BELOW FROM HERE IS THE EXISTING LOGINSCRIPT

**** Last Modified on 10/7/2009 at 2:40:42 PM ****
 Code:
?
?("*******************************************************************************");
?(" Logon Domain:	") (%USERDOMAIN%);
?(" Logon Server:	") (%LOGONSERVER%);
?(" Username:	")(%USERNAME%);
?(" Workstation:	")(%COMPUTERNAME%);
?("*******************************************************************************");
?
?
?
?("Now Mapping User H Drive")
Use H: /delete /persistent
Use H: "\\okcpfs01vh\home\%USERNAME%"
?("The Command Completed Successfully")
?
?("Now Mapping Departmental Drives")
?
;Section that Maps Network Drives By Departmental Group

use I: /delete /persistent
use I: "\\okcpfs01vh\shared"
?("The Command Completed Successfully")
gosub "general"

:General
?
?("Now Mapping R Drive")
Use R: /delete /persistent
Use R: "\\xprthq1\whmail"
?("The Command Completed Successfully")
?
?("Now Mapping S Drive")
Use S: /delete /persistent
Use S: "\\xprthq1\ehmail"
?("The Command Completed Successfully")
?
?("Now Mapping Forms T Drive")
Use T: /delete /persistent
Use T: "\\xprthq1\forms"
?("The Command Completed Successfully")

If Exist ("%LOGONSERVER%\netlogon\okc1\%USERNAME%.kix")?Call "%LOGONSERVER%\netlogon\okc1\%USERNAME%.kix"
?
Else EndIf
?



Edited by ShaneEP (2012-11-08 12:25 AM)
Edit Reason: added code tags