home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

My first "Open Source" script :D

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1939
Discussions: 204,514, Posts: 2,419,532, Members: 249,930
Old May 23rd, 2002, 04:45 AM   Digg it!   #1 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 26,171
Talking
My first "Open Source" script :D

Yeah yeah its kinda cheesy, but figured hey.. maybe somebody can think of some improvements to be made!
Now the only thing is, this is kind of a "niche" thing considering its really only useful for MS Exchange GAL (Global Address List) exports...
However, who knows maybe somebody can learn some (poor LOL) vbscript from it
Anyways, I had to write this up fairly quick for work so its not the cleanest code ever written, and maybe kinda hard to follow.. however, if you have any suggestions feel free to speak up
I'm going to make it a link, so you'll have to right click on the link and "Save As...." or it'll execute locally...
THIS IS NOT A VIRUS lol
Most folks know me around here that I do a bit of programming.. I'm ASKING that people look at the code and make comments lol
I chose not to put the code into the forum, because it'd be a bit lengthy and would definately blow out the tables. DOH!
If you do happen to just click on it, have no fears a stupid input box will open up asking for a file, just hit ok or something and it''ll error out.
Right now this is kind of like the linux kernel at first release... very rudimentary (no error handling lol) but it works
There are more comments inside to help understand, if you have any questions feel free to ask

Email Yanker thingie
Again, please RIGHT click it, and click save as
You can open this freely in notepad (or Preferrably metapad )
Have Fun lol

--- edit ---
LOL duh, just LEFT clicked on it IE out of curiosity and for some weird reason Media Player opened

Last edited by vass0922 : May 23rd, 2002 at 04:52 AM.
vass0922 is online now   Reply With Quote
Old May 23rd, 2002, 05:17 AM     #2 (permalink)
mickwish
 
Posts: n/a
Hey Vass. I wish I could say "nice work", but when I choose save as it saves it as a file called "YankEmailAddr.mpeg" rolleyes:

Can we have a nicer linky, please??

Cheers
Mick

Edit: well I can open it in notepad despite the mpeg extension.

Looks cool. Can't use it for anything I do, though.

Can ya make something useful, vass??

J/K

  Reply With Quote
Old May 23rd, 2002, 05:25 AM     #3 (permalink)
mickwish
 
Posts: n/a
Well I won't use this one at church in case it finds a dupe SMTP address Pastor may not be amused!!

But otherwise seems straight forw\ad enough. How do you kill it though??

Cheers
Mick
  Reply With Quote
Old May 23rd, 2002, 05:27 AM     #4 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,325
Quote:
Originally posted by mickwish
when I choose save as it saves it as a file called "YankEmailAddr.mpeg"

Same Here, I know just rename it to .vbs
Well I couldnt use it anyway, But nice of you to do something like this.
ChoaticWhisper is offline   Reply With Quote
Old May 23rd, 2002, 06:05 AM     #5 (permalink)
dword to your moms
 
krohnjw's Avatar
 
Join Date: Oct 2001
Location: ~/
Posts: 3,195
Send a message via AIM to krohnjw
Saves fine for me guys...I'm using opera
krohnjw is offline   Reply With Quote
Old May 23rd, 2002, 05:00 PM     #6 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 26,171
Go into task manager, and kill wscript.exe
WScript.exe is the interpreter it uses to run all vbs scripts!
The script itself doesn't find dupes, it simply strips out SMTP address from a Exchange export.
If you have access to Exchange, go up to Tools --> Directory Export.
Choose "Global Address List" as the source, home server and home site should be the default.
Once its exported into a .csv file (I believe the default export includes the columns for Email Address and Email Addresses, but I know it does not include SecondaryProxyAddress (which contains even more email addresses lol)
Once you have that exported, you run this script on it SHOULD lol strip out all SMTP addresses...
The reason we have to use it, is because we're setting up new X.400 connector with another site, and we have to find out where our GAL's may conflict. Our GAL has > 150k entries so not doing that manually
Also the one we're testing against has >50k entries.. hence the need for scripting lol
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old May 23rd, 2002, 05:33 PM     #7 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 26,171
Oh and Exchange won't allow you to have duplicates, it'll complain so you shouldn't have any worries Mick
It's just a pain when you put up a new X.400 connector to another site
vass0922 is online now   Reply With Quote
Old May 23rd, 2002, 07:26 PM     #8 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 26,171
Ok due to some new requirements I'm pretty much re-vamping the whole thing
I'll put up a new link so people can see the differences and "new and improved" coughcough structure lol
The new method will be a bit cleaner, more efficient and will also allow me to output different columns as needed as long as they're in the original file. My new requirement was, they also wanted the display name and the ObjClass (which says if its a mailbox or custom recipient etc)
Will keep you updated
vass0922 is online now   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1619)
CBO: Obama's health care plan cuts .. (103)
Jon Steward takes a swipe at Glenn .. (6)
USB not recognised..... (16)
First time builder (6)
would this build be enough for WOW? (14)
Recent Problem (15)
Need some suggestions on building a.. (32)
[ F@H Chat] 03/07/10 New Month New.. (90)
Can't Rename Files (11)
Motherboard the culprit? (7)
Windows XP Pro Error log (9)
Suggestions? (6)
Hard drive full = slower computer? .. (6)
Recent Discussions
Audio skips when I play a cd or dvd o.. (2)
Microsoft removes hardware virtualiza.. (1)
Outlook keeping 2 copies of sent mess.. (0)
Lexmark Printer Prestige pro805 (1)
First time builder (6)
Hypercam 2 plays sound too fast (1)
Need some suggestions on building a g.. (32)
[ F@H Chat] 03/07/10 New Month New T.. (90)
HTML (4)
IE8 & WLM crash whenever I try to.. (1)
iPad, who's getting one? (60)
Writing lead-out (8)
SSH Tunnel Or OpenVPN? (1)
About to install a new heatsink and I.. (3)
169 ip address question (4)
Help! Cisco Switch port (interface) f.. (1)
Motherboard the culprit? (7)
burner not burning. (4)
Windows XP Pro Error log (9)
Sim Societies won't launch (0)
Hard drive full = slower computer? Is.. (6)
Reading Raw data off an SD (MMC) card (8)
Recent Problem (15)
Phone Power (0)
USB not recognised..... (16)


All times are GMT -4. The time now is 02:48 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28