Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Scripting a listbox

HTVi
TV Discussion Newsgroups

Scripting a listbox
"Jeff Belorit" <jbelorit[ at ]mbi-inc.com> 5/18/2007 7:22:19 PM
I would like to generate a listbox of filnames that would allow a user to
choose a file from. Is it possible to create a listbox object using
vbscript and windows host script engine?

thanks for the help


Re: Scripting a listbox
Trevor Sullivan <pcgeek86[ at ]geemale.com> 5/18/2007 9:23:14 PM
Jeff Belorit wrote:
[Quoted Text]
> I would like to generate a listbox of filnames that would allow a user to
> choose a file from. Is it possible to create a listbox object using
> vbscript and windows host script engine?
>
> thanks for the help
>
>

Would your situation allow you to use an HTA (HTML Application)? The WSH
doesn't really allow you to do too much with the Windows GUI, so you
might be better off trying an HTA or maybe even a .NET application. With
an HTA, you can use the HTML "Select" Input type.

<input type = "select" />

Trevor Sullivan
MCP
http://develnet.blogspot.com
Re: Scripting a listbox
"Gino" <someone[ at ]microsoft.com> 6/3/2007 3:07:25 PM
Hope this helps
Watch for line wrap

Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "All Files|*.*"
objDialog.FilterIndex = 1
objDialog.InitialDir = "C:\"
intResult = objDialog.ShowOpen

If intResult = 0 Then
Wscript.Quit
Else
Wscript.Echo objDialog.FileName
End If


"Jeff Belorit" <jbelorit[ at ]mbi-inc.com> wrote in message
news:u40fdHYmHHA.1776[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
>I would like to generate a listbox of filnames that would allow a user to
>choose a file from. Is it possible to create a listbox object using
>vbscript and windows host script engine?
>
> thanks for the help
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen