#185849 - 2008-02-29 10:20 PM
batch file woes..
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
Hello!
I am trying to modify our existing kixtart script file and i am running into a few difficulties. I have the following in place in the file:
IF INGROUP("DFW-SigTest") shell "\\dfw-file01\Company\eMailSignature\emailsig.bat" ENDIF
EXIT
All of this information is correct as well as the batch file:
start \\dfw-file01\company\emailsignature\sign.exe Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\dfw-file01\company\eMailSignature\settings.mdb exit
The problem is that it appears to be running the sign.exe twice. What the software does is it pops up with an AD update window upon login so that users can update their info in AD manually. It only pops up once if i run the batch file manually, but if i allow kixtart to run it, it pops up twice.
ideas?
thank you,
Raymond
|
Top
|
|
|
|
#185851 - 2008-03-01 12:18 AM
Re: batch file woes..
[Re: rclinard]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4562
Loc: USA
|
What happens if you just simplify to this...
IF INGROUP("DFW-SigTest")
shell '"\\dfw-file01\company\emailsignature\sign.exe" Provider=Microsoft.Jet.OLEDB.4.0;Data Source="\\dfw-file01\company\eMailSignature\settings.mdb"'
ENDIF
|
Top
|
|
|
|
#185884 - 2008-03-03 01:59 PM
Re: batch file woes..
[Re: rclinard]
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Have you commented out the SHELL line to verify that the call is not duplicated somewhere else in the code?
|
Top
|
|
|
|
#185890 - 2008-03-03 06:05 PM
Re: batch file woes..
[Re: Howard Bullock]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
Thanks for your responses guys!
I just tried what you suggested Allen, but i got the same results. Two windows again.
Howard, yes, if i remove the entirety of the command, nothing comes up at all.
any other ideas guys?
thanks again!
|
Top
|
|
|
|
#185896 - 2008-03-03 08:03 PM
Re: batch file woes..
[Re: Witto]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
we have been using kixtart for some time now without any problems. I added the posted script to the existing script on Friday. I can't very well only have that part of the script run as it is performing alot more for drive mappings and such for the entire company.
Here is the script in it's entirety.
;Shell "regedit /s URLAllowList.reg"
;Shell "regedit /s drives.reg"
;Shell "regedit /s TCPKeepAlive.reg"
;shell "drive.bat"
;shell "\\dfw-file01\software$\Microsoft\Office_2007_Compatibility\2k7compat.bat"
$DIR = @HOMESHR + "\" + @USERID
IF INGROUP("Company (Dallas)")
use k: "\\dfw-file01\company" /persistent
use m: $DIR /persistent
; shell "dallas_office.bat"
ENDIF
IF INGROUP("Renre\Company (SavannahRe)")
use k: /DEL
use k: "\\sav-fp01\company" /persistent
use l: "\\sav-fp01\loran" /persistent
use m: $DIR /persistent
use s: "\\sav-fp01\software$" /persistent
; shell "savre_office.bat"
copy l:\loran.bat "%Userprofile%\desktop"
ENDIF
;copy "K:\renre screensaver.scr" %SystemRoot%\system32
IF INGROUP("DFW-MIS")
use s: /DEL
use s: "\\dfw-file01\software$" /persistent
ENDIF
IF INGROUP("DFW-FRS")
use R: "\\dfw-frs\reinprod" /persistent
use T: "\\dfw-frs\reintest" /persistent
ENDIF
IF INGROUP("DFW-GPC")
use H: "\\dfw-file01\Renre$" /persistent
ENDIF
IF INGROUP("SAV-GPC")
use H: "\\sav-fp01\Renre$" /persistent
ENDIF
IF INGROUP("DFW-FREEDOM")
use i: "\\dfw-app01\freedom" /persistent
ENDIF
IF INGROUP("DFW-ACCOUNTING")
use u: /DEL
use n: /DEL
use n: "\\dfw-epicor\d" /persistent
ENDIF
IF INGROUP("DFW-AMBEST")
copy "K:\DFW-APP01.rdp" "%Userprofile%\desktop"
ENDIF
IF INGROUP("DFW-NEON")
use l: "\\Nobel02\d" /persistent
ENDIF
IF INGROUP("DFW-FTP")
; use p: /DEL
use p: "\\dfw-pacerftp\pacer" /persistent
; use q: /delete
use q: "\\dfw-pacerftp\pacerbackup$" /persistent
ENDIF
IF NOT EXIST ("%SystemRoot%\system32\renre screensaver.scr")
copy "K:\renre screensaver.scr" %SystemRoot%\system32
ENDIF
IF NOT EXIST ("%Userprofile%\desktop\helpdesk.url")
copy "K:\helpdesk.url" "%Userprofile%\desktop"
copy "K:\helpdesk.ico" "%SystemRoot%\system32"
ENDIF
IF INGROUP("DFW-SigTest")
shell '"\\dfw-file01\company\emailsignature\sign.exe" Provider=Microsoft.Jet.OLEDB.4.0;Data Source="\\dfw-file01\company\eMailSignature\settings.mdb"'
ENDIF
EXIT
Ideas?
Raymond
|
Top
|
|
|
|
#185905 - 2008-03-03 11:17 PM
Re: batch file woes..
[Re: Mart]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
sign.exe is actually a software by Office-Addon (www.officeaddon.com), yet it does manage the signatures in outlook. Sign.exe opens an active directory modification window.
Is there something else i should be doing/using?
|
Top
|
|
|
|
#185907 - 2008-03-04 12:21 AM
Re: batch file woes..
[Re: Lonkero]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
I'm assuming that you are saying to try to force the script to pause, or stop altogether, and then restart after the pause and run the rest of the script all in one motion?
Sounds like an idea, don't think it will work, but would be sweet if it does.
Can you give me a little more insight on what the exact commands would be and where to place them in the file so i can try this?
|
Top
|
|
|
|
#185937 - 2008-03-04 09:43 PM
Re: batch file woes..
[Re: Lonkero]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
can i make that an IF INGROUP statement? I have an entire company running off of this script and i would prefer to not have this impact them in any way. If so, would it be like this?
IF INGROUP("DFW-SigTest")
sleep 2
"wohoo! this is one script here."
get $
ENDIF
Edited by rclinard (2008-03-04 09:44 PM)
|
Top
|
|
|
|
#185984 - 2008-03-05 06:09 PM
Re: batch file woes..
[Re: Lonkero]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
ok i will try that, but one more question, are you suggesting to put this script in front of the other sign.exe script or are you suggesting to comment that part of the script out?
remember the two windows issue is not the entire script running twice, but that one part of the script running twice. I'm not getting two dos windows showing the script in its entirety is running twice.
thank you,
raymond
|
Top
|
|
|
|
#185996 - 2008-03-05 08:55 PM
Re: batch file woes..
[Re: Lonkero]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
no, what i am saying is that the dos window that appears when kixtart runs is always only one window. the problem is that when i add the script to run sign.exe, it opens two instances of the sign.exe software even though the command in the script only says to run it once.
|
Top
|
|
|
|
#186141 - 2008-03-11 11:55 PM
Re: batch file woes..
[Re: rclinard]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
I guess i've got you guys stumped on this one... iunno... either way, i found something that sounded interesting
"The .SED File is (Note the line: AppLaunched=KIX32.EXE $) If you do not have it as AppLaunched=KIX32.EXE $, it will try to start KIXTART.KIX twice, if you use that as your script."
this was from http://home.wanadoo.nl/scripting/topics/f10/ultimatebb.cgi-ubb=print_topic;f=10;t=000027.htm if it matters...
I cannot find this .sed file and have no clue where i can put this command, if i should try it at all... any other clues guys?
|
Top
|
|
|
|
#186253 - 2008-03-13 11:52 PM
Re: batch file woes..
[Re: rclinard]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
anyone?
|
Top
|
|
|
|
#186274 - 2008-03-14 03:27 PM
Re: batch file woes..
[Re: Arend_]
|
rclinard
Fresh Scripter
Registered: 2008-02-29
Posts: 12
|
it is executing via an Active Directory logon script with only the command of kix32.exe
btw, i love your quote lol
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1574 anonymous users online.
|
|
|