Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


problem with script

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> problem with script
  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 >>
 problem with script - 7/1/2005 11:15:35 PM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
I have problem with my script, the last section where the users will be made member of a group. The first users goes ok, But the rest will fail.

Who has an good idea?

Thanks in advance



      
 
 
Post #: 1
 
 Re: problem with script - 7/2/2005 2:29:16 AM   
  didorno

 

Posts: 361
Score: 0
Joined: 2/12/2005
From:
Status: offline
Can you tell at which line(s) the process went wrong ?
What is the difference between the "first users" and the "rest", you mentioned. ?

Regards.

(in reply to Bezerk)
 
 
Post #: 2
 
 Re: problem with script - 7/2/2005 10:40:55 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
Problem solved, it wasn't looking right.
Everything works like a charm, i even managed to add the mailboxes to the users as well.
So till now the script is doing what is suppose to do, now i am looking for logging capacabilities and maybe create a version that can read a .csv file instead of using excel.

(in reply to Bezerk)
 
 
Post #: 3
 
 Re: problem with script - 7/3/2005 1:36:04 AM   
  ehvbs

 

Posts: 2171
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
ad .CSV

  • if you are familiar with the FileSystemObject and his cousins, you can
    use OpenTextStream, AtEndOfStream, and Readline to move thru your x.csv,
    splitting lines with Split() or RegExp. Expect problems with delimiters
    and data fields containing delimiters.

  • if you are familiar with SQL/ADO and would make your work easy by using SQL features
    like sorting, filtering, etc. you can use ADO/JET to get at your csv data.

          
    Expect some trouble with (security) settings and/or having to install
    (a new version) of this or that.


(in reply to Bezerk)
 
 
Post #: 4
 
 Re: problem with script - 7/3/2005 6:54:04 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
I preffer to stick with excel, becaseu of problem sorting the data with textfiles etc.

Database connections seems also a good point especially when doing migrations of huge enviroments, then userinformation is put into a database.

(in reply to Bezerk)
 
 
Post #: 5
 
 Re: problem with script - 7/3/2005 7:55:28 AM   
  ehvbs

 

Posts: 2171
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
I don't doubt your decision. But because I maintained that
sorting would be easy:

      

(in reply to Bezerk)
 
 
Post #: 6
 
 
 
  

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 >> problem with script 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