You are here32-bit

32-bit


Getting Older Code to Run on Windows 7 (Problems with cscript and wscript)

So I have a bunch of cscript I've written in vbscript and some of it updates databases.

The database connection is done through ODBC (32-bit) drivers, for example with PostgreSQL.

As I've migrated over to 64-bit on a few systems, I haven't run into problems until I have to start dealing with ODBC not seeing 32-bit drivers. This happens a lot, actually.

Anyway, my 32-bit scripts would choke with an error about not finding my connection or driver, even though I could see it fine in the ODBC manager.

The trick was to understand that I wasn't running 32-bit scripts, I was accidentally running 32-bit scripts with the 64-bit cscript program...

Did this help you? You can help me!


Did you find this information helpful? You can help me back by linking to this page, purchasing from my sponsors, or posting a comment!


+One me on Google:


Follow me on twitter: http://twitter.com/mojocode









Affiliation Badges