Page 1 of 2 12>
Topic Options
#125647 - 2004-08-25 10:47 PM formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
I got this script from another post and it works great

Code:
 ? "*** PC Auditing"

$DoInvent = "no"
$InventFile = "\\someserver\Inventory$$\" + @WKSTA + ".csv"
IF EXIST("$InventFile") = 0
$DoInvent = "yes"
ELSE
$FileMonth = SUBSTR(GETFILETIME("$InventFile"), 6, 2)
$ThisMonth = SUBSTR(@DATE, 6, 2)
IF $FileMonth <> $ThisMonth
DEL "$InventFile"
$DoInvent = "yes"
ENDIF
ENDIF
IF $DoInvent = "yes"
COLOR w/b ?" - PC audit, please wait..." COLOR y+/b
SHELL '%COMSPEC% /C $HomeServer\fileserver$$\Files\Aida32\aida32.exe /R "\\someserver\Inventory$$\$$HOSTNAME.csv" '+
'/CUSTOM "$HomeServer\fileserver$$\Files\Aida32\some_cust_report.rpf" /CSV /SHOWP /SILENT'
ELSE
COLOR w/b ?" - PC audit already made" COLOR y+/b



What does the 6, 2 mean at the end of this statement? $ThisMonth = SUBSTR(@DATE, 6, 2)


Edited by Jooel (2004-08-26 07:37 PM)

Top
#125648 - 2004-08-25 11:11 PM Re: formatting question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
look at the first link in my signature.
if you get amazed, go to kixtart.org main page and download yourself the manual.
_________________________
!

download KiXnet

Top
#125649 - 2004-08-25 11:12 PM Re: formatting question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and to really really answer your question, they are paramters for substr()
_________________________
!

download KiXnet

Top
#125650 - 2004-08-26 07:10 PM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
Thanks, I have another question here. I am using the following script which kind of works. The script is checking the modifed date of a file and if its more than a month it runs the audit. But every time you run the script the modified date of this file is getting changed just checking it. This is a file that is created by the audit32.exe and I know the audit is not running because its not in the task manager and it doesnt create an xml file in the target directory. It seems that just checking the modified date of the file is actually changing that date. Is this true? If this is the case then it will never run again because it will always be less than a month old. I am using 4.22
Code:
 

$DoInvent = "no"
$InventFile = "C:\trackitaduit.id"
IF EXIST("$InventFile") = 0
$DoInvent = "yes"
ELSE
$FileMonth = SUBSTR(GETFILETIME("$InventFile"), 6, 2)
$ThisMonth = SUBSTR(@DATE, 6, 2)
IF $FileMonth <> $ThisMonth
$DoInvent = "yes"
ENDIF
ENDIF
IF $DoInvent = "yes"
RUN @LDRIVE + "\pcaudit\audit32.exe"
ELSE
ENDIF


Top
#125651 - 2004-08-26 07:41 PM Re: formatting question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, it shouldn't.
you can verify it by doing the check twice in a row.
_________________________
!

download KiXnet

Top
#125652 - 2004-08-26 07:45 PM Re: formatting question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
This works fine for me...It does not update the date here.

Code:

$InventFile = "C:\trackitaudit.id"
IF Not EXIST($InventFile) OR (SUBSTR(GETFILETIME($InventFile),6,2) <> SUBSTR(@DATE,6,2))
RUN @LDRIVE + "\pcaudit\audit32.exe"
ENDIF



There was a mis-spelling or two in your posted code as well...maybe thats the problem.

Top
#125653 - 2004-08-26 07:55 PM Re: formatting question
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You should not put vars in quotes.

$FileMonth = SUBSTR(GETFILETIME("$InventFile"), 6, 2)

should be:
$FileMonth = SUBSTR(GETFILETIME($InventFile), 6, 2)

but then Shanes code looks like you can toss yours in the recycle bin.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125654 - 2004-08-26 10:00 PM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
Thanks for the help. That works great. But there is another weird issue. I have one main script that does some global thing. Then some case/select statements at the bottom that call another script based on group membership. We will get rid of this some day but for now it allows different business units to control their own login scirpt but still give us some global options. When I run this code inside the root script it doenst run. It seems like the call statement "break" it if that makes any sense. Any ideas?
Top
#125655 - 2004-08-26 10:02 PM Re: formatting question
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Check your vars. Prolly some scope issues.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125656 - 2004-08-26 10:06 PM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
If I put sleep 20 before the case/select statements it runs fine but you have to wait for it to run.
Top
#125657 - 2004-08-27 12:55 AM Re: formatting question
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Do you have to wait 20 seconds? Why not put a SLEEP 1 instead?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#125658 - 2004-08-27 03:29 AM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
sleep 1 is not long enough. The login scripts are in two parts. Script 1 is a global script that everyone runs. Then based on group memborship you run a second script.

script 1

Code:
 Select
Case InGroup ("NA Login") <> 0
Call nalogin.kix
Case InGroup ("ASI Login") <> 0
Call asilogin.kix
Case InGroup ("Insight Login") <> 0
Call insightlogin.kix
Case InGroup ("Reid Login") <> 0
Call reidlogin.kix
EndSelect



sp if you a member of na login you run that second script. Can I "come back" to the first script after I have the user run the second script? I ask because I would rather put this gloabl stuff in one place. Could I put some kind of code after the case select statement so it will run after the second script runs. Is that even a good idea?


Top
#125659 - 2004-08-27 04:37 AM Re: formatting question
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I dobt the issue is with the Call but rather the InGroup(). If you need to sleep for 20 seconds for InGroup() to work then you prolly need to optimize your netowrk settings. KiX does a pre-fetch of information from the network so if you have not optimized your network providerss and protcol bindings, it will take longer than expected for the pre-fetch.

As for your question of control returning to the calling script, it should return as long as you don't bomb out of the called script or Exit or Quit.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125660 - 2004-08-27 05:07 AM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
I dont thin the ingroup is the issue because I assigned the following script as a seperate GPO login script in a test ou. So this code is running by itself so to speak but it is not successfull unless I put the sleep 20 at the end. For what ever reason if I assing this script to the users profile tab with out the sleep 20 it runs fine. So it seems like when windows is logging in its killing the audit32 process.???

Code:
 $InventFile = "C:\trackitaudit.id"
If Not Exist($InventFile) OR (SubSTR(GetFileTime($InventFile),6,2) <> SubSTR(@DATE,6,2))
Shell @LDRIVE + "\pcaudit\audit32.exe"
EndIf


Top
#125661 - 2004-08-27 05:18 AM Re: formatting question
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
How do you expect us to give you an accurate diagnosis if all you give us is dribbles of info and supposition?

If the problem is with SHELLing or RUNning the audit software from within the script, then push it to the RunOnce key instead.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125662 - 2004-08-27 06:12 AM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
Where did that come from??? I am just trying to learn this language and hopefully learn from other people in the forums. If there is any information you think I left out feel free to ask. I dont mind sharing because obviously it will help me and hopefully others that search on this same subject. To be honest I expected this issue to be some kind of common knowledge to the people who use this tool every day.. I did not mean to wreck anyones day...
Top
#125663 - 2004-08-27 06:25 AM Re: formatting question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
No worries...Youre not wrecking anyones day. We wouldnt be trying to help you if we didnt want to.

Im still not 100% sure what the problem is however. Any way you could post the entire primary script, and one of the secondary scripts that is having the problem. Maybe we can help you make some temporary changes to it to help in the troubleshooting process.

Top
#125664 - 2004-08-27 06:51 AM Re: formatting question
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
Again thanks for the help. Believe it or not I have learned alot about kixtart in the last year or so just doing the log in scripting..

This is the first script that runs via domain group policy

Code:
 ; Ipsos North America Login Script
; This script will call another script based on group membership

SetConsole ("HIDE")

------ This part of the script runs the audit

$InventFile = "C:\trackitaudit.id"
If Not Exist($InventFile) OR (SubSTR(GetFileTime($InventFile),6,2) <> SubSTR(@DATE,6,2))
Shell @LDRIVE + "\pcaudit\audit32.exe"
ENDIF

;----- This section add the closest gc into the HKCU of the registry-----
If KeyExist ('HKEY_CURRENT_USER\Software\Microsoft\Exchange\') AND NOT KeyExist ('HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider')
AddKey ('HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider')
Else
EndIf


If KeyExist ('HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider') AND NOT KeyExist ('HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider","Closest GC","1","REG_DWORD')
WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider","Closest GC","1","REG_DWORD")
Else
EndIf
;------------------------------------------------------------------------

;----- This section deletes the outlook forms cache file-----------------
If Exist ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\") AND ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat")
DEL "%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat" /c /f
Else
EndIf

;------------------------------------------------------------------------

;------------------------------------------------------------------------
; Run Chicago migration Script
If InGroup ("na\Chicago Office")
Run "\\chifile1\logon$\MigrateChi1.cmd"
EndIf


If @WKSTA = ("term")
Call nalogin.kix
Else
EndIf
$OSversion = @PRODUCTTYPE
Select
Case $OSversion = "Windows 95"
Exit
Case $OSversion = "Windows 98"
Exit
Case $OSversion = "Windows Me"
Exit
Case $OSversion = "Windows NT Server"
Exit
Case $OSversion = "Windows NT Domain Controller"
Exit
Case $OSversion = "Windows 2000 Server"
Exit
Case $OSversion = "Windows 2000 Domain Controller"
Exit
Case $OSversion = "Windows XP Home Edition"
Exit
Case $OSversion = "Windows Server 2003"
Exit
Case $OSversion = "Windows Server 2003 Domain Controller"
Exit
EndSelect

;------------------------------------------------------------------------
; Copy Excel addins to users machine
If Exist("C:\Program Files\Microsoft Office\OFFICE\library\.")
If not Exist("C:\Program Files\Microsoft Office\OFFICE\library\idx.xla")
Copy "@lserver\netlogon\ExcelAddins\*.*" "C:\Program Files\Microsoft Office\OFFICE\library\"
EndIf
EndIf

;------------------------------------------------------------------------

Select
Case InGroup ("NA Login") <> 0
Call nalogin.kix
Case InGroup ("ASI Login") <> 0
Call asilogin.kix
Case InGroup ("Insight Login") <> 0
Call insightlogin.kix
Case InGroup ("Reid Login") <> 0
Call reidlogin.kix
EndSelect



This is the second script

Code:
 ; Ipsos-NA Login Script (creation date 11-7-2003)

; Code to copy the Ipsos-NA PCF file for the Cincinnati 3005 Cisco concentrator

;-------------------------------

If Exist ("C:\Program Files\Cisco Systems\VPN Client\Profiles") AND NOT Exist ("C:\Program Files\Cisco Systems\VPN Client\Profiles\ipsosna vpn cinci.pcf")
Copy "\\na\netlogon\ipsosna vpn cinci.pcf" "C:\Program Files\Cisco Systems\VPN Client\Profiles\"
Else
EndIf

Use "*" /delete

;-------------------------------

;Members of this group have to run an audit
;IF INGROUP ("trackitAudit")
;RUN @LDRIVE + "\audit.bat"
;ELSE
;ENDIF

;-------------UNIVERSAL DRIVE MAPPINGS

;Ipsos-ASI Q Drive

If InGroup ("Cinfile2_Download")
Use Q: "\\Cinfile2.na.ipsos\download"
Else
EndIf

;Temp ADP mapping until we migrate to using N drive

If InGroup ("Cinhr2_ADP")
Use L: "\\Cinhr2.na.ipsos\Cinhr"
Else
EndIf

;-------------OFFICE DRIVE MAPPINGS

;Chicago Drive Mappings

If InGroup ("Chifile1_Users")
Use P: "\\Chifile1.na.ipsos\Users\@USERID"
Use N: "\\NA.IPSOS\DFS"
; Use O: "\\Chifile1.na.ipsos\Chicago"
Else
EndIf

;Cincinnati Chester Towers Drive Mapping

IF INGROUP("Cinfile2_Users")
USE P: "\\Cinfile2.na.ipsos\users\@userid"
USE G: "\\Cinfile2.na.ipsos\users\@userid"
USE O: "\\Cinfile2.na.ipsos\CincinnatiChesterTowers"
USE I: "\\Cinfile2.na.ipsos\CincinnatiChesterTowers\Office"
USE N: "\\NA.IPSOS\DFS"
ELSE
ENDIF

;Cincinnati Chiquita Center Drive Mapping

If InGroup ("CINFILE1_Users")
Use P: "\\Cinfile1.na.ipsos\Users\@USERID"
Use N: "\\NA.IPSOS\DFS"
Use O: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center"
Else
EndIf

;Greensboro Drive Mapping

If InGroup ("GreFile1_Users")
Use P: "\\Grefile1.na.ipsos\Users\@USERID" /PERSISTENT
Use N: "\\NA.IPSOS\DFS" /PERSISTENT
Use O: "\\GreFile1.na.ipsos\Greensboro" /PERSISTENT
Else
EndIf

;Houston Drive Mapping

If InGroup ("HouFile1_Users")
Use P: "\\Houfile1.na.ipsos\Users\@USERID" /PERSISTENT
Use N: "\\NA.IPSOS\DFS" /PERSISTENT
Use O: "\\HouFile1.na.ipsos\Houston" /PERSISTENT
Else
EndIf

; Montreal - 245

If InGroup ("Monfile2_Users")
Use P: "\\Monfile2.na.ipsos\Users\@USERID"
Use N: "\\NA.IPSOS\DFS"
Use O: "\\Monfile2.na.ipsos\Montreal-245"
Else
EndIf

; Norwalk Office Drive Mapping

IF INGROUP("Norfile1_users")
USE P: "\\norfile1.na.ipsos\users\@userid"
USE G: "\\norfile1.na.ipsos\users\@userid"
USE O: "\\Norfile1.na.ipsos\Norwalk"
USE N: "\\NA.IPSOS\DFS"
Else
EndIf

;San Francisco Drive Mapping

If InGroup ("Sffile1_Users")
Use P: "\\Sffile1.na.ipsos\Users\@USERID"
Use N: "\\NA.IPSOS\DFS"
; USE O: "\\Sffile1.na.ipsos\San Francisco"
Else
EndIf

;Toronto 350 and 365 Bloor Street Office Drive Mapping

If InGroup ("Torfile2_Users")
Use P: "\\Torfile2.na.ipsos\Users\@USERID"
Use N: "\\NA.IPSOS\DFS"
Use O: "\\Torfile2.na.ipsos\Toronto350"
Else
EndIf

;Vantis Drive Mapping

If InGroup ("NA Vantis US")
Use E: "\\sr1\jobfiles" /PERSISTENT
Use F: "\\sr1\sharedfiles" /PERSISTENT
Use K: "\\sr1\Analytics" /PERSISTENT
Else
EndIf


; Reid Templates Copied to the Local Computers
;-------------------------------

; Montreal - 245 Templates

; Copied Each Time They Log In

$Source="\\Monfile2.na.ipsos\programs\templates\"
$Destination="C:\Program Files\Microsoft Office\Templates\"
IF INGROUP ("Monfile2_templates") AND @LServer = "\\Monfile2" AND EXIST ("$Destination")
Copy "$Source" "$Destination" /s
ELSE
ENDIF

; SF Templates

; Copied Each Time They Log In

$Source="\\sffile1.na.ipsos\projects\templates\"
$Destination="C:\Program Files\Microsoft Office\Templates\"
IF INGROUP ("sf_everyone_gg") AND EXIST ("$Destination")
Copy "$Source" "$Destination" /s
ELSE
ENDIF

;-------------------------------


;W: DRIVE MAPPING SECTION USING CASE

Select
;-------------------------------Cincinnati Chiquita Center
Case @PRIMARYGROUP=("CINFILE1_CLIENTSERVICE")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\Client Service"
Case @PRIMARYGROUP=("Cinfile1_DataProcessing")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\Data Processing"
Case @PRIMARYGROUP=("Cinfile1_Facility")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\Facility"
Case @PRIMARYGROUP=("Cinfile1_KAM")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\KAM"
Case @PRIMARYGROUP=("Cinfile1_Online")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\Online"
Case @PRIMARYGROUP=("Cinfile1_ResearchAnalytics")
Use W: "\\Cinfile1.na.ipsos\Cincinnati-Chiquita-Center\Research Analytics"

;-------------------------------Cincinnati Chester Towers
CASE @PRIMARYGROUP=("Cinfile2_Clientservice")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Client Service"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Client Service"
CASE @PRIMARYGROUP=("Cinfile2_IT")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\IT"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\IT"
CASE @PRIMARYGROUP=("cinfile2_hdrive")
USE W: "\\Cinfile2.na.ipsos\CincinnatiChesterTowers"
USE H: "\\Cinfile2.na.ipsos\CincinnatiChesterTowers"
CASE @PRIMARYGROUP=("Cinfile2_finance")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\finance"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\finance"
USE Y: "\\acctntserver\solomon solomon"
CASE @PRIMARYGROUP=("Cinfile2_Estimate")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\estimating"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\estimating"
CASE @PRIMARYGROUP=("Cinfile2_Tracking")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\tracking"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\tracking"
CASE @PRIMARYGROUP=("Cinfile2_Norms")
USE W: "\\Norfile1.na.ipsos\Norwalk\Research Analytics"
USE H: "\\Norfile1.na.ipsos\Norwalk\Research Analytics"
CASE @PRIMARYGROUP=("Cinfile2_Cati")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\cati"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\cati"
CASE @PRIMARYGROUP=("Cinfile2_Coding")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Coding"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Coding"
CASE @PRIMARYGROUP=("Cinfile2_Documentmanagement")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Document Management"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Document Management"
CASE @PRIMARYGROUP=("Cinfile2_Facility")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\facility"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\facility"
CASE @PRIMARYGROUP=("Cinfile2_HumanResource")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Human Resource"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Human Resource"
USE L: "\\cinhr2.na.ipsos\cinhr"
CASE @PRIMARYGROUP=("Cinfile2_International")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\International"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\International"
CASE @PRIMARYGROUP=("Cinfile2_Marketing")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\marketing"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\marketing"
CASE @PRIMARYGROUP=("Cinfile2_Printshop")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\print shop"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\print shop"
CASE @PRIMARYGROUP=("Cinfile2_OPD")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\opd"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\opd"
CASE @PRIMARYGROUP=("Cinfile2_Specwriter")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\specwriter"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\specwriter"
CASE @PRIMARYGROUP=("Cinfile2_TOG")
USE W: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Tog"
USE H: "\\Cinfile2.na.ipsos\cincinnatichestertowers\Tog"

;-------------------------------Greensboro
Case @PRIMARYGROUP=("GreFile1_Users")
Use W: "\\Grefile1.na.ipsos\Greensboro\ProjectTabs" /PERSISTENT

;-------------------------------Montreal - 245
Case @PRIMARYGROUP=("Monfile2_R&D")
Use W: "\\Monfile2.na.ipsos\Montreal-245\R&D"
Case @PRIMARYGROUP=("Monfile2_Finance")
Use W: "\\Monfile2.na.ipsos\Montreal-245\Finance"
Case @PRIMARYGROUP=("Monfile2_DocumentManagement")
Use W: "\\Monfile2.na.ipsos\Montreal-245\Document Management"
Case @PRIMARYGROUP=("Monfile2_ClientService")
Use W: "\\Monfile2.na.ipsos\Montreal-245\Client Service"

;-------------------------------Norwalk
CASE @PRIMARYGROUP=("Norfile1_Finance")
USE W: "\\Norfile1.na.ipsos\norwalk\finance"
USE H: "\\Norfile1.na.ipsos\norwalk\finance"
USE Y: "\\solomon.na.ipsos\solomon"
CASE @PRIMARYGROUP=("Norfile1_clientservice")
USE W: "\\Norfile1.na.ipsos\Norwalk\Client Service"
USE H: "\\Norfile1.na.ipsos\Norwalk\Client Service"
CASE @PRIMARYGROUP=("Norfile1_HumanResource")
USE W: "\\Norfile1.na.ipsos\Norwalk\Human Resource"
USE H: "\\Norfile1.na.ipsos\Norwalk\Human Resource"
USE L: "\\cinhr2.na.ipsos\cinhr"
CASE @PRIMARYGROUP=("Norfile1_ResearchAnalytics")
USE W: "\\Norfile1.na.ipsos\Norwalk\Research Analytics"
USE H: "\\Norfile1.na.ipsos\Norwalk\Research Analytics"
CASE @PRIMARYGROUP=("Norfile1_Seniorexecutive")
USE W: "\\Norfile1.na.ipsos\Norwalk\Senior Executive"
USE H: "\\Norfile1.na.ipsos\Norwalk\Senior Executive"
CASE @PRIMARYGROUP=("Norfile1_tracking")
USE H: "\\Norfile1.na.ipsos\Norwalk\tracking"
CASE @PRIMARYGROUP=("Norfile1_Novaction")
USE H: "\\Norfile1.na.ipsos\Norwalk\novaction"

;-------------------------------Toronto 350 and 365
Case @PRIMARYGROUP=("Torfile2_ClientService")
Use W: "\\Torfile2.na.ipsos\Toronto350\Client Service"
Case @PRIMARYGROUP=("Torfile2_DataProcessing")
Use W: "\\Torfile2.na.ipsos\Toronto350\Data Processing"
Case @PRIMARYGROUP=("Torfile2_Coding")
Use W: "\\Torfile2.na.ipsos\Toronto350\Coding"
Case @PRIMARYGROUP=("Torfile2_FieldObserver")
Use W: "\\Torfile2.na.ipsos\Toronto350\Field Observer"
Case @PRIMARYGROUP=("Torfile2_DocumentManagement")
Use W: "\\Torfile2.na.ipsos\Toronto350\Document Management"
Case @PRIMARYGROUP=("Torfile2_Estimating")
Use W: "\\Torfile2.na.ipsos\Toronto350\Estimating"
Case @PRIMARYGROUP=("Torfile2_Cati")
Use W: "\\Torfile2.na.ipsos\Toronto350\Cati"
Case @PRIMARYGROUP=("Torfile2_HumanResource")
Use W: "\\Torfile2.na.ipsos\Toronto350\Human Resource"
Case @PRIMARYGROUP=("Torfile2_SeniorManagement")
Use W: "\\Torfile2.na.ipsos\Toronto350\Senior Management"
Case @PRIMARYGROUP=("Torfile2_Tabbing")
Use W: "\\Torfile2.na.ipsos\Toronto350\Tabbing"
Case @PRIMARYGROUP=("Torfile2_Sampling")
Use W: "\\Torfile2.na.ipsos\Toronto350\Sampling"
Case @PRIMARYGROUP=("Torfile2_IT")
Use W: "\\Torfile2.na.ipsos\Toronto350\IT"
Case @PRIMARYGROUP=("Torfile2_Recruiting")
Use W: "\\Torfile2.na.ipsos\Toronto350\Recruiting"
Case @PRIMARYGROUP=("Torfile2_CanTrak")
Use W: "\\Torfile2.na.ipsos\Toronto350\CanTrak"
Case @PRIMARYGROUP=("Torfile2_Projects_Current Projects")
Use W: "\\Torfile2.na.ipsos\Toronto350\Projects\Current Projects"

EndSelect
Exit








The audit works fine if I put the sleep 20 after the audit32.exe line so there is a paused period before the second script runs.. It seems like the login process is stopping the executable from completing its job. I even set the user logon options in gpo so the scripts run before login.

Top
#125665 - 2004-08-27 08:50 AM Re: formatting question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it seems like the audit tool does not hold it's process id then.

you could check that by adding an echo line right after the audit shell line:
shell "...audit32.exe"
? "audit done."

and verifying that it has indeed finished.
_________________________
!

download KiXnet

Top
#125666 - 2004-08-27 03:33 PM Re: formatting question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Was also wondering why you couldnt just move the audit portion to the very bottom of the primary script. After all of the secondary scripts have been called and finished.
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 2366 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.088 seconds in which 0.041 seconds were spent on a total of 13 queries. Zlib compression enabled.

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