Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - multiselect file open dialog that supports long file names

Reply
 
Old 04-15-2009   #1 (permalink)
Scott Helmers


 
 

multiselect file open dialog that supports long file names

This code will present the user with a file open dialog that supports
selecting multiple files:
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "Visio documents|*.vsd|All Files|*.*"
objDialog.Flags = &H0200
objDialog.FilterIndex = 1
objDialog.InitialDir = "D:\My Documents\"
intFileCount = objDialog.ShowOpen

However, it looks like Windows 1.0 and does NOT support long file names.

Can someone recommend an alternative that does support long file names?

Thanks...

My System SpecsSystem Spec
Old 04-15-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: multiselect file open dialog that supports long file names


"Scott Helmers" <ScottHelmers@xxxxxx> wrote in message
news:38BFA3BA-545E-4DA6-BBF0-B501061435D1@xxxxxx
Quote:

> This code will present the user with a file open dialog that supports
> selecting multiple files:
> Set objDialog = CreateObject("UserAccounts.CommonDialog")
> objDialog.Filter = "Visio documents|*.vsd|All Files|*.*"
> objDialog.Flags = &H0200
> objDialog.FilterIndex = 1
> objDialog.InitialDir = "D:\My Documents\"
> intFileCount = objDialog.ShowOpen
>
> However, it looks like Windows 1.0 and does NOT support long file names.
>
> Can someone recommend an alternative that does support long file names?
>
> Thanks...
It's either multiselect or long file names but not both - see here:
http://www.microsoft.com/technet/scr...5/hey0301.mspx.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ARGGGGH!!! Long File Names in Vista!!! Vista General
File Open dialog box default size Vista file management
How can I search for path/file names that are over 255 characters long which is not allowed in Windows Vista Vista performance & maintenance
Long file names in Vista Vista file management
File Open and File Save As Dialog Freeze and Hang All Applications Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46