Advantage Database Server ODBC

If you touch your software enough does it become hardware?

Moderator: Forum Moderators

amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Advantage Database Server ODBC

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:54, edited 1 time in total.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

What system are you running them on?
Lateralus
Dr Zoidberg
Dr Zoidberg
Posts: 4217
Joined: May 15th, 2005, 15:20

Post by Lateralus »

How are your supplies of jam?
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 1 time in total.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

Are they shared off servers as well or are they standalone (but networked jobbers)?
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 1 time in total.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

In that case:

CSCRIPT \\server04\c$\windows\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"

Should do the trick

Otherwise if you have an active directory add that into a login script but sub in \\server04\c$\windows for %windir%
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 1 time in total.
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 2 times in total.
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post by Stoat »

You missed one

Code: Select all

if exist z: net use o: /delete 
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 1 time in total.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

If that's an AD login script, change the

CSCRIPT \\server04\c$\windows\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"

to

CSCRIPT %windir%\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"
Fear
Zombie
Zombie
Posts: 2032
Joined: August 6th, 2006, 21:45

Post by Fear »

Oh, i posted this in the disco board.

http://cwashington.netreach.net/depo/view.asp?Index=388

Create DSNs without 3rd party executables (eeew security risk)
Fear
Zombie
Zombie
Posts: 2032
Joined: August 6th, 2006, 21:45

Post by Fear »

I wrote a login script that used to map printers depending on group membership.

So being a member of say "ggSales" would map printers in and around the sales department. If this is of interest I can try and find it, hopefully I'll have archived it somewhere.
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:53, edited 1 time in total.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

:w00t:

I was actually doing this for the first time about 3 days ago so your timing is quite remarkable!
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:52, edited 1 time in total.
Fear
Zombie
Zombie
Posts: 2032
Joined: August 6th, 2006, 21:45

Post by Fear »

If you follow that script I linked, it is creating the DSN by writing to the registry. You could easily reverse engineer it, so to speak.

Create a valid Advantage DSN.

Find it in the registry.

Alter the code of the script to write the Advantage DSN registry keys (it will have extra keys and things I think)

Put code in login script.

...

Profit



Edit: Oh you fixed it as I was typing this.
spoodie
Site Moderator
Site Moderator
Posts: 9246
Joined: February 6th, 2005, 16:49
Location: Essex, UK

Post by spoodie »

7
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 5th, 2014, 18:52, edited 1 time in total.
Post Reply