FileSystemObject No LongName



I am trying to get the file names using the FileSystemObject. There is a
property for ShortName but no property for LongName. When I use the .Name
property all I get his the short name. Can someone tell me from the code
snipit what I have overlooked? Many thanks in advance:

Dim rootFolder As Scripting.Folder
Dim nod As MSComctlLib.Node
Dim fld As Scripting.Folder

Set rootFolder = fso.GetFolder(Node.FullPath & "\")

For Each fld In rootFolder.SubFolders
debug.print fld.Name
Next fld



Douglas J. Steele

That code gives me long file names, even if rootFolder is set using a short
folder name.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

FileSystemObject 2
FileSystemObject 2
FileSystemObject 5
FileSystemObject 2
FileSystemObject 1
FileSystemObject drive error 4
FileSystemObject Remane file 7
Question re FileSystemObject 2