Vous êtes sur la page 1sur 15

'Code for printing the files in a folder Option Explicit Dim fso,fld,sFiles,sFile Set fso=CreateObject("Scripting FileS!

stemObject"" Set fld=fso #etFolder("C$%Doc&ments and Settings%'dministrator%Des(top%)roject"" Set sFiles=fld Files For each sFile in sFiles print sFile *ame *ext Set fso=nothing +,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 'Code for 'ction )arameters b! &sing -np&t,O&tp&t )arameters a=10 b=20 Datatable.LocalSheet.AddParameter "Sum","" Datatable.LocalSheet.AddParameter "Diff","" Datatable.LocalSheet.AddParameter "Prod","" RunAction "Action2", oneIteration,a,b,sum1,diff1, rod1 !RunAction "Action2", oneIteration,a,b,Datatable"1,2#,Datatable"2,2#,Datatable"$,2# %ait $ &s'bo( "Sum) "*sum1 &s'bo( "Diff) "*diff1 &s'bo( "Prod) "* rod1 'Code for creating inp&t,o&tp&t parameters + tion ,( licit Dim n1,n2,sum,diff, rod n1=Parameter""-um1"# n2=Parameter""-um2"# sum=n1.n2 diff=n2/n1 rod=n10n2 Parameter""s"#=sum Parameter""d"#=diff Parameter"" "#= rod Code for actions S1stem2til.Run "3)4Pro'ram 5iles4&ercur1 Interacti6e47uic89est Professional4sam les4fli'ht4a 4fli'ht:a.e(e","","3)4Pro'ram 5iles4&ercur1 Interacti6e47uic89est Professional4sam les4fli'ht4a 4","o en" Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.Set "<am ani00=" >> hi'htli'ht id?@?10:AB10?@?scri t infofile?@?CIP))ssf1.(ml?@? Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.91 e mic9ab >> hi'htli'ht id?@?10:AB10?@?scri t infofile?@?CIP))ssf2.(ml?@?

Dialo'""Lo'in"#.;in,dit""Pass%ord)"#.SetSecure ":a$f0a=be1e01cd1:cdbff1=D:E:bfBAA2d$BD00" >> hi'htli'ht id?@?$A$A2D?@?scri t infofile?@?CIP))ssf$.(ml?@? Dialo'""Lo'in"#.;in,dit""Pass%ord)"#.91 e micReturn >> hi'htli'ht id?@?$A$A2D?@?scri t infofile?@?CIP))ssf:.(ml?@? RunAction "3o 1 of 3reate?order", oneIteration RunAction "5a(?order", oneIteration RunAction "3o 1 of Lo'out", oneIteration 'Code for finding the .ro(en lin(s b! &sing child objects + tion ,( licit Dim brln8,desc,cnt,i,coll,oShell,lin8 S1stem2til.Run "%%%.1atra.com" Set oShell=3reate+b<ect""%scri t.shell"# Set desc=Descri tion.3reate desc""html ta'"#.Falue="A" Set coll=Gro%ser""Hatra.com &1 Goo8in's"#.Pa'e""Hatra.com &1 Goo8in's"#.3hild+b<ects"desc# cnt=coll.count oShell. o u "-o of Lin8s) "*cnt,2,"Lin8s Info" 5or i=0 to cnt/1 Set coll=Gro%ser""Hatra.com &1 Goo8in's"#.Pa'e""Hatra.com &1 Goo8in's"#.3hild+b<ects"desc# !lin8=coll"i#.IetRoPro ert1""name"# oShell. o u coll"i#.IetRo Ro ert1""name"#,1,"Lin8 Info" coll"i#.clic8 If "coll"i#.IetRoPro ert1""title"#="9he a'e cannot be dis "# 9hen brln8=brln8.1 ,nd If Gro%ser""Hatra.com &1 Goo8in's"#.Gac8 -e(t &s'bo( "-o of Gro8en Lin8s) "*brln8 Set oShell=nothin' 'Code for .&ilt/-n En0iroment 1ariables to read s!stem info &s'bo( "3om uter -ame) "*,n6ironment.Falue""LocalJost-ame"# &s'bo( "+ eratin' S1stem) "*,n6ironment.Falue""+S"# &s'bo( "+S Fersion) "*,n6ironment.Falue""+SFersion"# &s'bo( "Action -ame) "*,n6ironment.Falue""Action-ame"# &s'bo( "Action Iteration) "*,n6ironment.Falue""ActionIteration"# &s'bo( "9est-ame) "*,n6ironment.Falue""9est-ame"# &s'bo( "9est Iteration) "*,n6ironment.Falue""9estIteration"# &s'bo( "Product-ame) "*,n6ironment.Falue""Product-ame"# &s'bo( "Product Fersion) "*,n6ironment.Falue""ProductFer"# &s'bo( "Product Dir) "*,n6ironment.Falue""ProductDir"# &s'bo( "9est Dir) "*,n6ironment.Falue""9estDir"#

'Code for capt&ring the text forom a 2ebpage b! &sing #etCellData(" + tion ,( licit Dim ro%cnt,colcnt,ro%no,colno,celldata,oShell Set oShell=3reate+b<ect""%scri t.shell"# ro%cnt=Gro%ser""I- +ffers , &ail, -e%s,"#.Pa'e""I- +ffers , &ail, -e%s,"#.;eb9able""inde()=2"#.Ro%3ount !&s'bo( "Ro% count) "*ro%cnt oShell. o u "Ro% count) "*ro%cnt,2,"Ro% Info" 5or ro%no=1 to ro%cnt colcnt=Gro%ser""I- +ffers , &ail, -e%s,"#.Pa'e""I- +ffers , &ail, -e%s,"#.;eb9able""Inde()=2"#.3olumn3ount"ro%no# ! &s'bo( "3olumn 3ount) "*colcnt oShell. o u "3olumn count) "*colcnt,2,"3ol Info" 5or colno=1 to colcnt celldata=Gro%ser""I- +ffers , &ail, -e%s,"#.Pa'e""I- +ffers , &ail, -e%s,"#.;eb9able""Inde()=2"#.Iet3ellData"ro%no,colno# If "celldataKL""# 9hen oShell. o u celldata,1,"3ell Info" ,nd If -e(t -e(t 'Code for capt&ring the text from a 2indo2 b! &sing #et1isible3ext(" + tion ,( licit Dim str1,str2, os,res str1=%indo%""5li'ht Reser6ation"#.Dialo'""About 5li'ht Reser6ation"#.IetFisible9e(t"# &s'bo( str1 str2="Fersion :.0" os=Instr "1,str1,str2,FG9e(t3om are# &s'bo( os If " osKL0# 9hen res=&id"str1, os,11# If "res=str2# 9hen &s'bo( "9he strin' e(ist) "*res ,lse &s'bo( "9he strin' does not e(ist) "* os ,nd If ,nd If 'Code for capt&ring the text from a 2ebpage b! &sing #etCellData(" + tion ,( licit Dim %eb,ro%cnt,colcnt,ro%no,colno,celldata,cnt,coll,oShell,i Set oShell=3reate+b<ect""%scri t.shell"# Set %eb=Descri tion.3reate !%eb""micclass"#.6alue=";eb9able" %eb.add "html ta'","9AGL,"

Set coll=Gro%ser""India JotelsM Star JotelsM"#.Pa'e""India JotelsM Star JotelsM"#.3hild+b<ects"%eb# cnt=coll.count oShell. o u ";eb 9ables 3ount) "*cnt,2,";eb 9able Info" 5or i=0 to cnt ro%cnt=coll"i#.Ro%count !oShell. o u "Ro% 3ount) "*ro%cnt,2,"Ro% Info" 5or ro%no=1 to ro%cnt colcnt=coll"i#.columncount"ro%no# ! oShell. o u "3olumn 3ount) "*colcnt,2,"3ol Info" 5or colno=1 to colcnt celldata=coll"i#.Iet3ellData"ro%no,colno# If "celldataKL""# 9hen !oShell. o u celldata,1,"3ell Info" rint celldata ,nd If -e(t -e(t -e(t 'Code for chec(ing the D*S ser0ices b! &sing oShell Object + tion ,( licit Dim fso,m1file,str, os,oShell,res 3onst 5orReadin'=1 Set oShell=3reate+b<ect""%scri t.shell"# oShell.run "3&D Nc net start L D)4m1file12$.t(t" Set fso=3reate+b<ect""Scri tin'.5iles1stem+b<ect"# Set m1file=fso.+ en9e(tfile""D)4m1file12$.t(t",5orReadin',5alse# ;hile m1file.At,nd+fStreamKL9rue str=m1file.Readall os=Instr "1,str,"D-S 3lient",FG9e(t3om are# If " osKL0# 9hen res=&id"str, os,10# ms'bo( res If "res="D-S 3lient"# 9hen &s'bo( "D-S Ser6ices Runnin' "*res ,lse &s'bo( "D-S Ser6ices not Runnin'" ,nd If ,nd If ;end set oShell=nothin' bro%ser""Ioo'le Accounts"#.Pa'e""Ioo'le Accounts"#.Ima'e""Fisual 6erification"#.3a tureGitma "D)4im'.bm " >> hi'htli'ht id?@?$1:E=BD?@?scri t infofile?@?CIP))ssf1.(ml?@? 'Code for finding the 4!per 5in(s in a 2ebpage b! &sing Child Objects

+ tion ,( licit Dim oLin8,coll,cnt,i,lin8,oShell Datatable.IlobalSheet.AddParameter "&1Lin8s","" set oShell=3reate+b<ect""%scri t.shell"# Set oLin8=Descri tion.3reate !oLin8""micclass"#.6alue="Lin8" oLin8""html ta'"#.6alue="A" Set coll=Gro%ser""3reation9ime)=0"#.Pa'e""inde()=0"#.3hild+b<ects"oLin8# cnt=coll.3ount !&s'bo( "-o of J1 er Lin8s) "*cnt oShell. o u "-o of J1 er Lin8s) "*cnt,2,"Lin8s Info" 5or i=0 to cnt/1 !Datatable.Set3urrentRo%"i.1# lin8=coll"i#.IetR+Pro ert1""name"# If "lin8KL""# 9hen oShell. o u lin8,1,"Lin8s Info" ,nd If If "lin8="blo's"# 9hen coll"i#.clic8 ,(it 5or ,nd If ,(it 5or Datatable.Falue""&1Lin8s","Ilobal"#=lin8 Print coll"i#.IetR+Pro ert1""name"# -e(t datatable.,( ortSheet "D)4shruthi.(ls","Ilobal" Set oLin8=-othin' 'Code for closing the m&ltiple .ro2sers + tion ,( licit &s'bo( Gro%ser""3reation9ime)=0"#.,(ist ;hile Gro%ser""3reation9ime)=0"#.,(ist Gro%ser""3reation9ime)=0"#. a'e""Inde()=0"#.%ebedit""inde()=0"#.Set "ra'huOa" %ait 1 Gro%ser""3reation9ime)=0"#. a'e""Inde()=0"#.%ebedit""inde()=1"#.SetSecure ":a2b$fdD=cbeeAbD=$cbb1BBD0fED:DAdBe:2Ef=$A:BcAD0EAA$" %ait 1 Gro%ser""3reation9ime)=0"#. a'e""Inde()=0"#.%ebbutton""inde()=0"#.3lic8 %ait 1 Gro%ser""3reation9ime)=0"#. a'e""Inde()=1"#.Lin8""inde()=0"#.3lic8 %ait 1 Gro%ser""3reation9ime)=0"#.3lose ;end ' code for closing m&ltiple 2indo2s

+ tion e( licit &s'bo( Dialo'""inde()=0","te(t)=Lo'in"#.,(ist ;hile Dialo'""inde()=0","te(t)=Lo'in"#.,(ist Dialo'""inde()=0","te(t)=Lo'in"#.;in,dit""inde()=0","attached te(t)=A'ent -ame)"#.Set "asdf" %ait 1 Dialo'""inde()=0","te(t)=Lo'in"#.;in,dit""inde()=1","attached te(t)=Pass%ord)"#.Set "mercur1" %ait 1 Dialo'""inde()=0","te(t)=Lo'in"#.;inGutton""inde()=0","te(t)=+P"#.3lic8 %ait 1 %indo%""te(t)=5li'ht Reser6ation"#.3lose ;end 'Code for creating the text file b! &sing the FSO + tion ,( licit Dim fso,m15older,m1file 3onst 5or%ritin'=2,5orA endin'=D Set fso=3reate+b<ect""scri tin'.files1stemob<ect"# Set m15older=fso.3reate5older""D)4shruthi"# Set m1file=fso.3reatete(tfile""D)4shruthi4file12$.t(t",5or%ritin',9rue# !Set m1file=fso.+ en9e(t5ile""D)4shruthi4file12$.t(t",5orA endin' ,9rue# m1file.%riteline "&1 -ame is Prish" m1file.%riteblan8lines"1# m1file.%riteline "&1 -ame is Ra'hu" m1file.%riteblan8lines"1# m1file.%riteline "&1 -ame is Srini6as" m1file.close Set fso=-othin' Set m1file=-othin' Set m15older=-othin' 'Code for Data.ase Connection first method 2ith DS* + tion ,( licit Dim conn,recob<,recordcnt,fieldscnt,col,i,< Datatable.AddSheet""Qam ani"# Set conn=3reate+b<ect""AD+DG.3onnection"# conn.o en "DS-=79?5li'ht$2" !conn.o en "Ser6er=<am ani@Dri6er=&icrosoft Access Dri6er "0.mdb#@DG7=3)4Pro'ram 5iles4&ercur1 Interacti6e47uic89est Professional4sam les4fli'ht4a 4fli'ht$2.mdb@9rusted?3onnection=1es" !conn.o en "Ser6er=<am ani@Dri6er=S7L Ser6er@DataGase=&aster@2serID=sa@Pass%ord=sa" !conn.o en "Ser6er=<am ani@Dri6er=+racleDri6er@DataGase=&aster@2serID=sa@Pass%ord=sa" &s'bo( "3onnection Status) "*conn.State

If "conn.state=1# 9hen Re orter.Re ort,6ent micPass,"3hec8in' the DataGase 3onnections","DG 3onnection success" ,lse Re orter.Re ort,6ent mic5ail,"3hec8in' the DataGase 3onnections","DG 3onnection failure" ,nd If Set recob<=3reate+b<ect""AD+DG.Recordset"# recob<.o en "Select 0 from 5li'hts %here 5li'ht?-umberK1110",conn,1 recordcnt=recob<.recordcount ms'bo( "Record 3ount) "*recordcnt fieldscnt=recob<.fields.count &s'bo( "5ields count) "*fieldscnt 5or each col in recob<.fields Datatable.IetSheet""Qam ani"#.Add arameter col.-ame,"" -e(t 5or i=0 to recordcnt/1 Datatable.Set3urrentRo%"i.1# 5or <=0 to fieldscnt/1 Datatable.Falue"<.1,"Qam ani"#=recob<"<# -e(t recob<.mo6ene(t -e(t !Datatable.,( ortSheet "c)4bharathi.(ls","Qam ani" recob<.sa6e "D)4bharathi.(ml",1 recob<.sa6e "D)4bharathi.t(t",1 conn.close Set conn=nothin' Set recob<=nothin' 'Code for designing the 4365 doc .! &sing the FSO + tion ,( licit Dim fso,m1file 3onst 5or%ritin'=2 Set fso=3reate+b<ect""Scri tin'.5iles1stem+b<ect"# Set m1file=fso.3reate9e(t5ile""D)4file12$:.html",5or;ritin',9rue# m1file.%riteline "KhtmlL" m1file.%riteline "KheadL" m1file.%riteline "KtitleL9est3ase ResultsKNtitleL" m1file.%riteline "KNheadL" m1file.%riteline "Kbod1 b'color='reenL" m1file.%riteline "KcenterL" m1file.%riteline "Kh1L9est 3ase ResultsKNh1L" m1file.%riteline "KbrLKbrLKbrLKbrL" m1file.%riteline "Ktable b'color=red border=2 ali'n=centerL"

m1file.%riteline "KtrLKthLSnoKNthLKthL9est3aseKNthLKthL,( .ResultsKNthLKthLAct.ResultsKNthLKthLSt art9imeKNthLKthLStatusKNthLKNtrL" m1file.%riteline "KtrLKtdL1KNtdLKtdLLo'inKNtdLKtdLLo'in should be o enKNtdLKtdLLo'in should be successKNtdLKtdL"*-o%*"KNtdLKtdLPassKNtdLKNtrL" m1file.%riteline "KtrLKtdL2KNtdLKtdLInser +rderKNtdLKtdLInser +rder should be o enKNtdLKtdLInser +rder should be successKNtdLKtdL"*-o%*"KNtdLKtdLPassKNtdLKNtrL" m1file.%riteline "KtrLKtdL$KNtdLKtdL2 date +rderKNtdLKtdL2 date +rder should be o enKNtdLKtdL2 date +rder should be successKNtdLKtdL"*-o%*"KNtdLKtdL5ailKNtdLKNtrL" m1file.%riteline "KNtableL" m1file.%riteline "KNbod1L" m1file.%riteline "KNcenterL" m1file.%riteline "KNhtmlL" m1file.close Set fso=nothin' Set m1file=nothin' 'Code for external en0ironment 0ariables + tion ,( licit Dim ath1, h1 ath1=,n6ironment.,(ternal5ile-ame &s'bo( Is,m t1" ath1# If " ath1=,m t1# 9hen ,n6ironment.Load5rom5ile "3)4Documents and Settin's4Administrator4Des8to 4shruthi4,n6file.(ml" &s'bo( "2serID) "*,n6ironment.Falue""2serID"# &s'bo( "Pass%ord) "*,n6ironment.Falue""Pass%ord"# &s'bo( "Qob) "*,n6ironment.Falue""Qob"# &s'bo( "Sal) "*,n6ironment.Falue""Sal"# &s'bo( "Location) "*,n6ironment.Falue""Location"# ,lse &s'bo( "5ile Alread1 in use) "* ath1 ,nd If Code for external actions RunAction "Lo'in R3ode for actionsS", oneIteration 'Code for getting the dri0es info b! &sing FSO + tion ,( licit Dim fso,oDri6e,dri6,strout Set fso=3reate+b<ect""scri tin'.files1stemob<ect"# Set oDri6e=fso.Dri6es 5or each dri6 in oDri6e strout=strout*"A6ailable Dri6es) "*dri6.Dri6eLetter*FG3rlf strout=strout*"IS Read1) "*dri6.IsRead1*FG3rlf

strout=strout*"Dri6e 91 e) "*dri6.Dri6e91 e*FG3rlf strout=strout*"Folume-ame) "*dri6.Folume-ame*FG3rlf strout=strout*"Dri6e Path) "*dri6.Path*FG3rlf strout=strout*"Root5older) "*dri6.Root5older*FG3rlf strout=strout*"Serial-umber) "*dri6.Serial-umber*FG3rlf strout=strout*"5ileS1stem) "*dri6.5ileS1stem*FG3rlf strout=strout*"5ree s ace) "*dri6.5rees ace*FG3rlf strout=strout*"5ileS1stem) "*dri6.9otalSiTe*FG3rlf -e(t &s'bo( strout 'Code for la&nching the .ro2ser + tion ,( licit Dim ie,url Public 5unction Launch?Gro%ser"url# Set ie=3reate+b<ect""Internet,( lorer.A ie.6isible=true ie.9oolGar=1 ie.-a6i'ate url Set ie=-othin' ,nd 5unction

lication"#

3all Launch?Gro%ser""%%%.'oo'le.com"# 3all Launch?Gro%ser""%%%.rediffmail.com"# !................................................. Public 5unction Launch?A "ar'1# Set %sh=3reate+b<ect""%scri t.shell"# %sh.run ar'1 Set %sh=nothin' ,nd 5unction 3all Launch?A %ait 1 3all Launch?A %ait 1 3all Launch?A %ait 1 3all Launch?A %ait 1 3all Launch?A %ait 1 3all Launch?A ""-ote ad.e(e"# ""cmd.e(e"# ""%%%.'oo'le.com"# "",U3,L.,U,"# ""calc.e(e"# ""%%%.msn.com"#

!..................................................... In6o8eA lication "note ad.e(e" %ait 1

In6o8eA lication "cmd.e(e" %ait 1 In6o8eA lication ",U3,L.,U," %ait 1 In6o8eA lication ";I-;+RD.,U," %ait 1 In6o8eA lication "calc.e(e" %ait 1 In6o8eA lication "3)4Pro'ram 5iles4Internet ,( lorer4I,UPL+R,.,U," S1stemutil.Run "-ote ad.e(e" %ait 1 S1stemutil.Run "%%%.bharathmatrimon1.com" %ait 1 S1stemutil.Run "3)4Documents and Settin's4Administrator4Des8to 4Scri ts" %ait 1 s1stemutil.Run "3)4Documents and Settin's4Administrator4Des8to 4Da1/Bth.(ls" 'Code for reading text from text file b! &sing FSO + tion ,( licit Dim fso,m1file,str 3onst 5orreadin'=1 Set fso=3reate+b<ect""scri tin'.files1stemob<ect"# Set m1file=fso.+ en9e(tfile""D)4Anu .t(t",5orReadin',false# ;hile m1file.AtendoflineKLtrue str=m1file.readline ms'bo( str ;end m1file.close Set fso=nothin' Set m1file=nothin' 'Code for reading the 765 file b! &sing 7658til CreateObject + tion ,( licit Dim doc,root,child,childitem,subchild,subitem,cnt,cnt1,i,< Set doc=U&L2til.3reateU&L doc.Load5ile "3)4Documents and Settin's4Administrator4Des8to 4en612$.(ml" &s'bo( doc Set root=doc.IetRoot,lement !&s'bo( "Root ,lement -ame) "*root.,lement-ame !&s'bo( "Root ,lement Falue) "*root.Falue Set child=root.3hildelements cnt=child.count !ms'bo( "3hild 3ount) "*cnt 5or i=1 to cnt Set childitem=child.item"i# !&s'bo( "3hild Item -ame) "*childitem.,lement-ame !&s'bo( "3hild Item Falue) "*childitem.Falue

Set subchild=childitem.child,lements cnt1=subchild.count !&s'bo( "Subchild 3ount) "*cnt1 5or <=1 to cnt1 Set subitem=subchild.Item"<# &s'bo( "Sub child Item) "*subitem.,lement-ame &s'bo( "Sub child Item) "*subitem.Falue -e(t -e(t Set doc=-othin' Set child=nothin' Set childitem=nothin' Set subchild=nothin' Set subitem=nothin' 'Code for registr! (e!s /FSO,oShell,Dictionar! objects + tion ,( licit Dim oShell set oShell=3reate+b<ect""%scri t.shell"# oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID","scri tin'.files1stemob<ect","R,I?S C" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID","%scri t.shell","R,I?SC" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID","scri tin'.dictionar1","R,I?SC" &s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID"# &s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID"# &s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID"# oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID" oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID" oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4ie4Pro'ID","Internet,( lorer.A lication","R,I ?SC" Set oShell=-othin'

!3ode for Guilt/In ,n6iroment Fariables to read s1stem info &s'bo( "3om uter -ame) "*,n6ironment.Falue""LocalJost-ame"#

&s'bo( "+ eratin' S1stem) "*,n6ironment.Falue""+S"# &s'bo( "+S Fersion) "*,n6ironment.Falue""+SFersion"# &s'bo( "Action -ame) "*,n6ironment.Falue""Action-ame"# &s'bo( "Action Iteration) "*,n6ironment.Falue""ActionIteration"# &s'bo( "9est-ame) "*,n6ironment.Falue""9est-ame"# &s'bo( "9est Iteration) "*,n6ironment.Falue""9estIteration"# &s'bo( "Product-ame) "*,n6ironment.Falue""Product-ame"# &s'bo( "Product Fersion) "*,n6ironment.Falue""ProductFer"# &s'bo( "Product Dir) "*,n6ironment.Falue""ProductDir"# &s'bo( "9est Dir) "*,n6ironment.Falue""9estDir"# 000000000000000000000000000000000000000000000000000 'Code for finding the .ro(en lin(s b! &sing child objects + tion ,( licit Dim brln8,desc,cnt,i,coll,oShell,lin8 Set oShell=3reate+b<ect""%scri t.shell"# Set desc=Descri tion.3reate desc""html ta'"#.Falue="A" Set coll=Gro%ser""Hatra.com &1 Goo8in's"#.Pa'e""Hatra.com &1 Goo8in's"#.3hild+b<ects"desc# cnt=coll.count oShell. o u "-o of Lin8s) "*cnt,2,"Lin8s Info" 5or i=0 to cnt/1 Set coll=Gro%ser""Hatra.com &1 Goo8in's"#.Pa'e""Hatra.com &1 Goo8in's"#.3hild+b<ects"desc# !lin8=coll"i#.IetRoPro ert1""name"# oShell. o u coll"i#.IetRo Ro ert1""name"#,1,"Lin8 Info" coll"i#.clic8 If "coll"i#.IetRoPro ert1""title"#="3annot find ser6er"# 9hen brln8=brln8.1 ,nd If Gro%ser""Hatra.com &1 Goo8in's"#.Gac8 -e(t &s'bo( "-o of Gro8en Lin8s) "*brln8 Set oShell=nothin' 00000000000000000000000000000000000000000000000000000 'Code for external en0ironment 0ariables + tion ,( licit Dim ath1, h1 ath1=,n6ironment.,(ternal5ile-ame

&s'bo( Is,m t1" ath1# If " ath1=,m t1# 9hen ,n6ironment.Load5rom5ile "3)4Documents and Settin's4Administrator4Des8to 4shruthi4,n6file.(ml" &s'bo( "2serID) "*,n6ironment.Falue""2serID"# &s'bo( "Pass%ord) "*,n6ironment.Falue""Pass%ord"# &s'bo( "Qob) "*,n6ironment.Falue""Qob"# &s'bo( "Sal) "*,n6ironment.Falue""Sal"# &s'bo( "Location) "*,n6ironment.Falue""Location"# ,lse &s'bo( "5ile Alread1 in use) "* ath1 ,nd If

0000000000000000000 !9o lo' off set a=createob<ect""%scri t.shell"# s th="V%indirV4SHS9,&$24rundll$2.e(e user$2.dll,Loc8;or8Station" a.run s th,0,false 0000000000000000000000000000000000000000 to Shut do%n set a=createob<ect""%scri t.shell"# a.send8e1s "VW5:X" a.send8e1s "W9AGX" a.send8e1s "Y" 00000000000000000000000000000000 'Code for registr! (e!s /FSO,oShell,Dictionar! objects + tion ,( licit Dim oShell set oShell=3reate+b<ect""%scri t.shell"# oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID","scri tin'.files1stemob<ect","R,I?S C" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID","%scri t.shell","R,I?SC" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID","scri tin'.dictionar1","R,I?SC" &s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID"#

&s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID"# &s'bo( oShell.Re'Read ""JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID"# oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4fso4Pro'ID" oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4%sh4Pro'ID" oShell.Re'Delete "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4dict4Pro'ID" oShell.Re';rite "JP324Soft%are4&ercur1 Interacti6e47uic89est Professional4&ic9est4Reser6ed+b<ects4ie4Pro'ID","Internet,( lorer.A lication","R,I ?SC" Set oShell=-othin' reco0er! 5unction Reco6er15unction1"+b<ect# +b<ect.close Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.set "ra'hu" Dialo'""Lo'in"#.;inGutton""+P"#.clic8 ;indo%""te(t)=5li'ht Reser6ation"#.close ,nd 5unction 'Code for reco0er! scenarios to handle r&ntime errors S1stem2til.Run "3)4Pro'ram 5iles4&ercur1 Interacti6e47uic89est Professional4sam les4fli'ht4a 4fli'ht:a.e(e","","3)4Pro'ram 5iles4&ercur1 Interacti6e47uic89est Professional4sam les4fli'ht4a 4","o en" Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.Set "Ram" %ait 1 Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.91 e mic9ab Dialo'""Lo'in"#.;in,dit""Pass%ord)"#.SetSecure ":a:::d$212A=d$fcbfEB01eD:bD1dDAddB01A2:=" %ait 1 Dialo'""Lo'in"#.;in,dit""Pass%ord)"#.91 e mic9ab Dialo'""Lo'in"#.;inGutton""+P"#.91 e micReturn %indo%""te(t)=5li'ht Reser6ation"#.3lose Dialo'""Lo'in"#.;in,dit""A'ent -ame)"#.Set "ra'hu" %ait 1 Dialo'""Lo'in"#.;inGutton""+P"#.3lic8 %indo%""te(t)=5li'ht Reser6ation"#.3lose

'Code for getting 0o2el,consonent and special char co&nt + tion ,( licit

Dim str1,char,cnt,6cnt,ccnt,s lcnt,s acecnt,i 6cnt=0 ccnt=0 s lcnt=0 s acecnt=0 str1=L3ase"In utGo("",nter An1 9e(t) "## &s'bo( str1 cnt=Len"str1# 5or i=1 to cnt char=&id"str1,i,1# If "char="a" or char="e" or char="i" or char="o" or char="u" #9hen 6cnt=6cnt.1 ,lseIf"char=">" or char="Z" or char="[" or char="*" or char="0" or char=")" or char="," or char="M" #9hen s lcnt=s lcnt.1 ,lseif"char=" "# 9hen s acecnt=s acecnt.1 ,lse ccnt=ccnt.1 ,nd If -e(t &s'bo( "Fo%el 3ount) "*6cnt &s'bo( "3onsonent 3ount) "*ccnt &s'bo( "S ecial charactor) "*s lcnt &s'bo( "s ace 3ount) "*s acecnt

Vous aimerez peut-être aussi