473,395 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows Explorer in VB dot net

hi all

I have created a Windows explorer in VB dot net windows application
in Visual studio 2003
where i can browse complete system and able to show
all possible SubDirectories of SubDirectories of
SubDirectories............. mean
upto end .............

i show it with complete path for each . and it will be show at listview
now i need when i click one of the ListView items.
It should show the complete Details or can say properties for that
FOLDER
like i want to display
Title , Author , Commnet for that Folder in a any type of Pop up window

just like seeing windows folder properties in microsot window.
it's really urgent i need it.............

Plzz help me
thanks in advance

Regard
Dilip Yadav

Nov 23 '05 #1
6 3043
Dilip,

A pity for you is that there is now in 2005 the my.computer class which
holds probably most information that you want.

http://msdn2.microsoft.com/en-us/library/ms172966.aspx

Therefore the only help you probably can get is from somebody who has it by
hand. It is less interesting for many to investigate something in VS 2003 as
it is easy to do in VS 2005

I hope anyhow that this information helps you,

Cor
Nov 23 '05 #2
Hi Cor

First of all thanks for ur suggestion....

but i have only visual studio 2003 ..........even i know that u already
told me
that
my.computer class in 2005 ......

may i get any substitue .........or something like my.computer class in

visual studio 2003

basically my need to show the folder's
Author , Title , comments in popup window

hope for positive reply
and once again thank for your mail
bye

Regard
Dilip Yadav

Nov 23 '05 #3
Dilip,

This is the directoryinfo class

http://msdn.microsoft.com/library/de...mberstopic.asp

However what do you mean with the Author, Tittle and Comments of a
directory?

Cor
Nov 23 '05 #4
hi Cor,
thanks for ur reply

well
i will try with this link
but b4 this wht i have done is that

i have tried with this code ...but this will not work with visual
studio2003
it show an error ..
http://msdn2.microsoft.com/en-us/library/0b485hf7.aspx
i have tried with this code ...but this will not work with visual
studio2003
it show an error ..

Example- http://msdn2.microsoft.com/en-us/library/0b485hf7.aspx

This example checks to determine whether the folder C:\backup\logs
exists and checks its properties.
Dim logInfo As System.IO.DirectoryInfo
If My.Computer.FileSystem.DirectoryExists("C:\backup\ logs") Then
logInfo = My.Computer.FileSystem.GetDirectoryInfo _
("C:\backup\logs")
End If

Nov 23 '05 #5
Dilip,

That does not work in VB2003

Did you look at the samples on this page.

http://msdn.microsoft.com/library/de...ClassTopic.asp

I hope this helps,

Cor
Nov 23 '05 #6
"Dilip" <ya*********@gmail.com> wrote in message news:11**********************@g49g2000cwa.googlegr oups.com...
hi all

I have created a Windows explorer in VB dot net windows application
in Visual studio 2003
where i can browse complete system and able to show
all possible SubDirectories of SubDirectories of
SubDirectories............. mean
upto end .............

i show it with complete path for each . and it will be show at listview
now i need when i click one of the ListView items.
It should show the complete Details or can say properties for that
FOLDER
like i want to display
Title , Author , Commnet for that Folder in a any type of Pop up window

just like seeing windows folder properties in microsot window.
it's really urgent i need it.............


For VB.NET, use the following to show a file's properties:

Structure SHELLEXECUTEINFO
Dim cbSize As Integer
Dim fMask As Integer
Dim hwnd As Integer
Dim lpVerb As String
Dim lpFile As String
Dim lpParameters As String
Dim lpDirectory As String
Dim nShow As Integer
Dim hInstApp As Integer
Dim lpIDList As Integer
Dim lpClass As String
Dim hkeyClass As Integer
Dim dwHotKey As Integer
Dim hIcon As Integer
Dim hProcess As Integer
End Structure

Const SEE_MASK_INVOKEIDLIST = &HC
Const SEE_MASK_NOCLOSEPROCESS = &H40
Const SEE_MASK_FLAG_NO_UI = &H400

Declare Function ShellExecuteEx Lib "shell32.dll" (ByRef SEI As SHELLEXECUTEINFO) As Integer

Sub ShowProperties(ByVal lpFile As String, ByVal hWnd As Integer)

Dim SEI As SHELLEXECUTEINFO
Dim r As Long

With SEI
.cbSize = Len(SEI)
.fMask = SEE_MASK_NOCLOSEPROCESS Or SEE_MASK_INVOKEIDLIST Or SEE_MASK_FLAG_NO_UI
.hwnd = hWnd
.lpVerb = "properties"
.lpFile = lpFile
.lpParameters = vbNullChar
.lpDirectory = vbNullChar
.nShow = 0
.hInstApp = 0
.lpIDList = 0
End With

r = ShellExecuteEx((SEI))

End Sub
Example usage:-

ShowProperties("C:\WINDOWS\WIN.INI", Me.Handle.ToInt32)
Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
1
by: Steve Randall | last post by:
I am building a utility application that uses much of the same functionality as already exists in the Windows Explorer. It would therefore make sense to use (if possible) the Windows Explorer as the...
1
by: Jon Slaughter | last post by:
I'm trying to create a windows explorer like app and the problem I'm having is getting the proper icon for the folders and items. In windows explorer there are many different icons and most seem...
0
by: shinichi81 | last post by:
1. I create a background Windows Explorer (by using CreateProcess() function with szCmdline = "explorer.exe /select,C:\" and hidden option). After that, from Desktop, right click "My Computer"...
4
by: =?Utf-8?B?Q2FybGFKYWRl?= | last post by:
Can anyone help me? I need to use picture it 2000 every day and use to use it on Windows XP and had NO problems at all. If I would open up windows explorer i could be in my folder that has all of...
1
by: CSharpner | last post by:
Short Question: How do I support Cut/Paste to/from a .NET app and Windows Explorer? Full Text: I'm nearing the completion of a Remote File Management application. It looks and feels a lot like...
0
by: Shafiq | last post by:
Hi All, Based on the sample kbbar.net applicaation i have created a tool bar for windows explorer. Now i have to enable and disable few buttons based the user slects file in the explorer. For to...
5
by: =?Utf-8?B?SmFwZQ==?= | last post by:
im writing a c# console application that copies files chosen from the windows explorer. I chose the files i want to copy and then from the (right key) menu chose my program. the program starts...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.