Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Array problem

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,29649
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Array problem
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Array problem - 1/10/2006 4:24:35 AM   
  Mindmesh

 

Posts: 78
Score: 0
Joined: 11/23/2004
From:
Status: offline
Any idea why I would get this error:   Type mismatch: 'UBound'


from this code?


      

Thanks for the help..
 
 
Post #: 1
 
 RE: Array problem - 1/10/2006 5:15:49 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
strKeyPath = "Software\Microsoft\Internet Explorer\TypedURLs"
you forgot a space in the above line, in the registry, there is a space between internet and explorer.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to Mindmesh)
 
 
Post #: 2
 
 RE: Array problem - 1/10/2006 6:23:42 AM   
  Mindmesh

 

Posts: 78
Score: 0
Joined: 11/23/2004
From:
Status: offline
Thanks.. Now I feel like a dumb@ss.. I guess it makes sense though. Thank you.

Any ideas  on how to clear out IE History? I try to delete the Index.dat but it's always locked

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: Array problem - 1/10/2006 12:11:26 PM   
  BBistheKing

 

Posts: 107
Score: 0
Joined: 6/21/2005
Status: offline
Would this be of any help:

http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_thread/thread/8bcbc9011cb410d6/64d35f67126ad45d%2364d35f67126ad45d?sa=X&oi=groupsr&start=0&num=3

_____________________________

"Live simply, that others may simply live." - Mahatma Gandhi

(in reply to Mindmesh)
 
 
Post #: 4
 
 RE: Array problem - 1/11/2006 1:30:54 AM   
  Mindmesh

 

Posts: 78
Score: 0
Joined: 11/23/2004
From:
Status: offline
Tried that one already. Doesn't work.. Thanks anyway though.

(in reply to BBistheKing)
 
 
Post #: 5
 
 RE: Array problem - 1/11/2006 2:23:34 AM   
  Country73


Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
Index.dat is a hidden "system" file, so it makes it very difficult to delete these files.
The easiest way to delete the Index.dat files is to delete them when the individual is not logged into the machine.
As soon as that individual logs back in then new Index.dat files will be created.

(in reply to Mindmesh)
 
 
Post #: 6
 
 RE: Array problem - 1/11/2006 2:47:38 AM   
  Mindmesh

 

Posts: 78
Score: 0
Joined: 11/23/2004
From:
Status: offline
How do you get a script to run when the user isn't logged into the sytem. I've tried running it as a logoff script and that hasn't been very successful either.

(in reply to Country73)
 
 
Post #: 7
 
 RE: Array problem - 1/11/2006 2:50:55 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
you could use wmi to delete the file on the remote systems, assuming you have admin rights to them

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to Mindmesh)
 
 
Post #: 8
 
 RE: Array problem - 1/11/2006 2:56:12 AM   
  ebgreen


Posts: 5070
Score: 31
Joined: 7/12/2005
Status: online
Would it work as a startup script instead of a logon/logoff script?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to kirrilian)
 
 
Post #: 9
 
 RE: Array problem - 1/11/2006 3:15:29 AM   
  Country73


Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
quote:

Would it work as a startup script instead of a logon/logoff script?

Tried that, same reaction as if you were fully logged in.

One possiblity, if not pushing this out to a remote machine, set the script up in a scheduled task to run sometime when you are not logged in.

(in reply to ebgreen)
 
 
Post #: 10
 
 RE: Array problem - 1/11/2006 3:20:22 AM   
  Mindmesh

 

Posts: 78
Score: 0
Joined: 11/23/2004
From:
Status: offline
I don't think that will work for me, we use this as part of our logoff script at work, and most systems are shutdown at the end of the day. I wonder how those track eraser programs do it..

Any idea where they store the URL History? I've deleted the TypedURLs in the Registry, but when I use winspy it still finds them.

(in reply to Country73)
 
 
Post #: 11
 
 RE: Array problem - 1/12/2006 6:22:33 AM   
  Country73


Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
quote:

I don't think that will work for me, we use this as part of our logoff script at work, and most systems are shutdown at the end of the day.

You may be able to do it with setting up a scheduled task to run your script at a specified time (when the users "should" be logged out).
Either run the script from the workstation itself or have a server run the script against all of the workstations.

Locations of the Index.dat files.
\Documents and Settings\<Username>\Cookies\index.dat
\Documents and Settings\<Username>\Local Settings\History\History.IE5\index.dat
\Documents and Settings\<Username>\Local Settings\History\History.IE5\MSHist012001123120020101\index.dat
\Documents and Settings\<Username>\Local Settings\History\History.IE5\MSHist012002010720020114\index.dat
\Documents and Settings\<Username>\Local Internet Files\Content.IE5\index.dat


(in reply to Mindmesh)
 
 
Post #: 12
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Array problem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts