Page 1 of 2 12>
Topic Options
#185849 - 2008-02-29 10:20 PM batch file woes..
rclinard Offline
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 Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
What happens if you just simplify to this...

 Code:
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 Offline
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?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#185890 - 2008-03-03 06:05 PM Re: batch file woes.. [Re: Howard Bullock]
rclinard Offline
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
#185892 - 2008-03-03 07:04 PM Re: batch file woes.. [Re: rclinard]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
- Troubleshoot your script
* Just do what you need and nothing else
* Put error checks ij your script
- Post your script

Top
#185896 - 2008-03-03 08:03 PM Re: batch file woes.. [Re: Witto]
rclinard Offline
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.

 Code:
;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
#185902 - 2008-03-03 09:51 PM Re: batch file woes.. [Re: rclinard]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Are you 100% sure that sign.exe is not creating a window? Depending on if you are using kix32 or wkix32 but kix32 will fire up one window and sign.exe might do the same.

This sign.exe is it the Symprex Mail Signature Manager? If so does Symprex have anything on this?
http://www.symprex.com/products/email-signature-disclaimer-manager/
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#185905 - 2008-03-03 11:17 PM Re: batch file woes.. [Re: Mart]
rclinard Offline
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
#185906 - 2008-03-03 11:57 PM Re: batch file woes.. [Re: rclinard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about launching your script twice?

instead of that sign line add something like:
sleep 2
"wohoo! this is one script here."
get $

then see, do you get 2 windows.
_________________________
!

download KiXnet

Top
#185907 - 2008-03-04 12:21 AM Re: batch file woes.. [Re: Lonkero]
rclinard Offline
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
#185933 - 2008-03-04 08:47 PM Re: batch file woes.. [Re: rclinard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the commands were exactly as I gave them and you replace the run line or comment it out.

what you will see is that if you somehow have managed to start the script twice, that will let you know.
_________________________
!

download KiXnet

Top
#185937 - 2008-03-04 09:43 PM Re: batch file woes.. [Re: Lonkero]
rclinard Offline
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?

 Code:
IF INGROUP("DFW-SigTest")
sleep 2
"wohoo! this is one script here."
get $
ENDIF




Edited by rclinard (2008-03-04 09:44 PM)

Top
#185946 - 2008-03-04 11:38 PM Re: batch file woes.. [Re: rclinard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you can.
but you could just as well make it:
##################################
if @userid = "myaccount_thankyouverymuch"
endif
##################################

this way you don't bother anyone \:\)
_________________________
!

download KiXnet

Top
#185984 - 2008-03-05 06:09 PM Re: batch file woes.. [Re: Lonkero]
rclinard Offline
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
#185989 - 2008-03-05 08:13 PM Re: batch file woes.. [Re: rclinard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, you saying your script always shows window but that line gives you 2 more windows?
_________________________
!

download KiXnet

Top
#185996 - 2008-03-05 08:55 PM Re: batch file woes.. [Re: Lonkero]
rclinard Offline
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 Offline
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 Offline
Fresh Scripter

Registered: 2008-02-29
Posts: 12
anyone?
Top
#186262 - 2008-03-14 09:02 AM Re: batch file woes.. [Re: rclinard]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
how do you launch your kix script in the first place ?
Top
#186274 - 2008-03-14 03:27 PM Re: batch file woes.. [Re: Arend_]
rclinard Offline
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
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1574 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.047 seconds in which 0.02 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org