473,405 Members | 2,176 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,405 software developers and data experts.

Automation for Windows Explorer

HS1
Hello
Could you please help a code so I can open a folder in windows explorer when
I click a button, (e.g explorer automation)
Thank you
SH
Nov 21 '05 #1
4 1420
Son

\\\Set a reference to SHDocVw.dll and one button on a form
Public WithEvents Explorer As SHDocVw.InternetExplorer
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Explorer = New SHDocVw.InternetExplorer
Explorer.Visible = True
Explorer.Navigate("http://msdn.microsoft.com")
End Sub
////
I hope this helps a little bit?

Cor
Nov 21 '05 #2
HS1
Thank you very much Cor
My question is for Windows Explorer, not for Internet explorer (for openning
a folder)
Thank you
SH
"Cor Ligthert" <no************@planet.nl> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
Son

\\\Set a reference to SHDocVw.dll and one button on a form
Public WithEvents Explorer As SHDocVw.InternetExplorer
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Explorer = New SHDocVw.InternetExplorer
Explorer.Visible = True
Explorer.Navigate("http://msdn.microsoft.com")
End Sub
////
I hope this helps a little bit?

Cor

Nov 21 '05 #3
Son,

Sorry that is so easy in a long format it can much shorter however now you
see what happens

\\\
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\"
pi.FileName = "explorer.exe"
p.startinfo = pi
p.Start()
///

I hope this helps better,

Cor
Nov 21 '05 #4
"HS1" <so*@slingshot.co.nz> schrieb:
Could you please help a code so I can open a folder in windows explorer
when
I click a button, (e.g explorer automation)


\\\
Imports System.Diagnostics
..
..
..
Process.Start("explorer", "C:\WINDOWS")
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

2
by: mic | last post by:
I'm currently trying to write an MSIE automation software and have run into such problem - have no idea how to take control of external popup windows - I use WebBrowser COM object and am able to...
0
by: asadhussain | last post by:
I wrote a plugin to internet explorer that requires internet explorer to be shutdown and restarted. I figured out a way to shut down IE using the MSI and to start it back up using VBScript. I...
3
by: Robert | last post by:
---EN--- This message has been crossposted in a french speaking newsgroup, english version is at the end. Thanks a lot for your help... --/EN--- Bonjour, Je développe une application...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
3
by: TR | last post by:
Hi, We have some code that uses automation to create/manipulate word documents. This runs in a batch mode, generating dozens of documents in sequence. The code works great, but while the...
2
by: RJB | last post by:
I'm working on a VB application that must run 24x7 for a LONG time, think 60 days of so. As part of what it does it must automate an instance of IE and navigate to many different URLs, think many...
3
by: Richard Bell | last post by:
I'm working on a VB application that must run 24x7 for a LONG time, think 60 days of so. As part of what it does it must automate an instance of IE and navigate to many different URLs, think many...
2
by: Neil | last post by:
I have an Access 2000 mdb file which opens MS Word docs using automation. Our WAN is somewhat slow, and it takes about six seconds to open Word and the specified document (20 KB) from within Access...
0
by: Nitin Mittal | last post by:
Dear Sir I have a created a Web Service that uses ShDocVw.Dll and Microsoft.mshtml.dll for IE automation. For the development I am using VS 2005 installed on Windows 2000 Professional System. In...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.