hi,
Is it a way to call Windows APIs from VB Script file?

Thanks

Re: Calling Windowz API by Michael

Michael
Mon Oct 11 06:47:29 CDT 2004

some yes via rundll for others you might need to create a COM Wrapper to be
able to access them...

"Viga" <Viga@discussions.microsoft.com> wrote in message
news:D3BA21A9-2676-48D9-9007-D160A9323932@microsoft.com...
> hi,
> Is it a way to call Windows APIs from VB Script file?
>
> Thanks



Re: Calling Windowz API by Lee

Lee
Mon Oct 11 06:59:15 CDT 2004

On Mon, 11 Oct 2004 03:39:02 -0700, "Viga"
<Viga@discussions.microsoft.com> wrote:

>hi,
>Is it a way to call Windows APIs from VB Script file?
>
>Thanks

I don't know of anyway, except by wraping the API in an ActiveX dll.
Do you have a particuliar API you need to use. Chances are someone
else already has an ActiveX dll for it.

Lee


Re: Calling Windowz API by Torgeir

Torgeir
Mon Oct 11 07:23:14 CDT 2004

Viga wrote:

> hi,
> Is it a way to call Windows APIs from VB Script file?
>
> Thanks
Hi

You can use an API wrapper, e.g. DynaWrap, from an earlier thread:

<quote>
From: jim_w (jwarrington*noSteekin*@*Spam*worldnet.att.net)
Subject: Re: API Calls from VBScript
Newsgroups: microsoft.public.scripting.vbscript
Date: 2001-01-16 10:54:05 PST

hi Renu,

You can call an api using DynaWrap, which is available from Clarence's or
Guenter's websites, although you may prefer Guenter's as he provides some doc to
go along with the code.

Clarence:
http://cwashington.netreach.net/main/tools/default.asp?topic=a-m

(then look for: DynaWrap.dll)

Guenter: http://www.borncity.com/WSHBazaar/WSHBazaar.htm

(click on DynaCall page)

Note: If you plan on doing something extremely complicated or grandiose, then it
may be advisable to write your own COM object (ocx) which is "scriptable", to
"wrap" the api calls. The api declarations are easier to deal with when coding
in visual basic, and your script would look a lot less messy. (And, your
scripting friends would make a lot fewer diaparaging remarks about you). If you
have any interest in writing an ocx "wrapper" for your api calls, then you might
want to consider using vb5cce (a.k.a. Microsoft's gift to scripters) at:

http://msdn.microsoft.com/downloads/tools/visualbasic/vbcce.asp

Better get it before Microsoft changes it's mind, and tries to sell you vb.net
instead.

cheers, jw
</quote>


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Calling Windowz API by mr

mr
Fri Oct 15 13:02:10 CDT 2004

hi All,

Microsoft's "free gift to scripters" (vb5cce) was great while it lasted, but
has now apparently vanished from the face of the earth.

ms changed its url frequently, just to keep us on our toes, and the last
know address was:

http://msdn.microsoft.com/vbasic/downloads/tools/cce/default.aspx

You can still find that link in microsoft's website, but it is broken.

The best I could find was a vb5cce "FAQ" page, but then, the faq doesn't do
much good without the compiler.

http://support.microsoft.com/default.aspx?scid=kb;en-us;165524

As best I can tell, ms has withdrawn their "free gift to scripters". Too
bad. If you want to "wrap" some api's from now on, your best bet will be to
find a "classic" vb compiler (vb5 or vb6) on eBay. The current compiler,
vb.net, can call api's and can offer actX utilities, but the process to get
there is mucho complicated (imho).

cheers, jw

rip: vb5cce (1997-2004)

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:egnZ704rEHA.2008@TK2MSFTNGP12.phx.gbl...
>
> http://msdn.microsoft.com/downloads/tools/visualbasic/vbcce.asp
>
> Better get it before Microsoft changes it's mind, and tries to sell you
vb.net
> instead.
>
> cheers, jw



Re: Calling Windowz API by mr

mr
Fri Oct 15 15:26:40 CDT 2004

uh-oh, I spoke too soon.

While Microsoft has purged the web page that offered vb5cce,
the downloads themselves are still there (gasp!).

The logic behind this escapes me, but then, who am I to understand
the mysteries of Microsoft.

Anyway, you can still download the vb5cce compiler (directly) from here:

http://download.microsoft.com/msdownload/sbn/vbcce/vb5ccein.exe

and the vb5cce help file from here (beware the url wrap):


http://download.microsoft.com/download/5/2/5/5253a7ea-1310-40d8-b762-625c2019310e/ccehelp.exe

Perhaps in purging the vb5cce web page, ms forgot to purge the downloads.

Anyway, GET IT WHILE YOU CAN...

cheers, jw

"mr unreliable" <ReplyToNewsgroup@notmail.com> wrote in message
news:uxHgQ%23tsEHA.3412@TK2MSFTNGP14.phx.gbl...
> hi All,
>
> Microsoft's "free gift to scripters" (vb5cce) was great while it lasted,
> but has now apparently vanished from the face of the earth.