473,801 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open windows explorer window from vb.net

Hi

I need my users to have a shortcut to windows\tasks from my vb.net app.
But im not sure the simplest solution to lauch explorer and navigate to
the directory...

Anyone help ???

Many thanks

androoo

Jan 26 '07 #1
3 16325
Hello,

you could use Process.Start:

Dim procstart As New ProcessStartInf o("explorer")
Dim winDir As String =
System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
procstart.Argum ents = winDir
Process.Start(p rocstart)

Regards,
P. Di Stolfo

"androoo" wrote:
Hi

I need my users to have a shortcut to windows\tasks from my vb.net app.
But im not sure the simplest solution to lauch explorer and navigate to
the directory...

Anyone help ???

Many thanks

androoo

Jan 26 '07 #2
Thanks ill try it out !

On Jan 26, 12:49 pm, P. Di Stolfo
<PDiSto...@disc ussions.microso ft.comwrote:
Hello,

you could use Process.Start:

Dim procstart As New ProcessStartInf o("explorer")
Dim winDir As String =
System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
procstart.Argum ents = winDir
Process.Start(p rocstart)

Regards,
P. Di Stolfo

"androoo" wrote:
Hi
I need my users to have a shortcut to windows\tasks from my vb.net app.
But im not sure the simplest solution to lauch explorer and navigate to
the directory...
Anyone help ???
Many thanks
androoo- Hide quoted text -- Show quoted text -
Jan 26 '07 #3
i usually just shell it out explore.exe "c:\"

oh wait a second some dipshit decided that is too dangerous right?

Thank god for Visual FRED

-Aaron
On Jan 26, 3:49 am, P. Di Stolfo <PDiSto...@disc ussions.microso ft.com>
wrote:
Hello,

you could use Process.Start:

Dim procstart As New ProcessStartInf o("explorer")
Dim winDir As String =
System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
procstart.Argum ents = winDir
Process.Start(p rocstart)

Regards,
P. Di Stolfo

"androoo" wrote:
Hi
I need my users to have a shortcut to windows\tasks from my vb.net app.
But im not sure the simplest solution to lauch explorer and navigate to
the directory...
Anyone help ???
Many thanks
androoo- Hide quoted text -- Show quoted text -
Jan 26 '07 #4

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

Similar topics

4
22189
by: Kamilche | last post by:
Is there a command you can execute in Python that will open a window on the desktop, such as 'My Documents'? Kind of like 'system', but for folder names, not just programs. I'm running on Windows 2000.
18
8854
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page (same folder). The cookie is not received. Can someone explain why? I worked around this by adding a cache-control header with a value of no-cache. This fixes the problem. Unfortunately that causes another problem with Internet Explorer...
5
5099
by: Nicola Pedrozzi | last post by:
Here I really need a guru... ;^( I found out today with a big disappointment that : window.open("url", ...) and also navigate("url") limit the max length of the url string to something like 2080 characters. That on Explorer only; Netscape and Mozilla work perfectly
0
2469
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the drive root). The menu item text is "Open .Net Command Window Here". When you click it, it opens a command window positioned at that directory and runs the vsvars32.bat file to set the .Net Framework environment variable settings. This makes it...
4
2153
by: Ian Sedwell | last post by:
Hi guys The following code works just fine in Netscape on MacOS and Windows. But in Explorer on MacOS and Windows it throws a type mismatch error at the point marked with the comment ³// bug out at this point². (The functions that are called, but not listed here work fine in both Netscape and Explorer in this and other contexts, so I can confidently discount them as the source of any error.) I have also tried just a plain and simple...
10
11189
by: aagee | last post by:
Hi all Can someone clue me in on this? I just noticed that following doesn't work as it used to: window.open(... "fullscreen=yes" ...) Used to get a window that occupied the whole screen; now I get the title bar and status bar too. Any ideas?
2
13244
by: Paul Steele | last post by:
Is there any way to check for open Explorer windows and if any are found, tell Windows Explorer to close them. I don't want a brute force method of killing Explorer and letting it restart. I'd prefer something a little less drastic. I suspect what I'm going to need is some API call such as SendMessage. Anybody have any suggestions?
1
9240
by: Mike Kober | last post by:
I'm having difficulty getting this to work. Any help would be appreciated. What I'm trying to do is to open Explorer onto the Windows/fonts directory and then close it. I've added a font programmatically to the directory and found that the easiest way to refresh the folder is to just open windows explorer. Without doing this, it isn't refreshed in the system. I had the same problem in VB6 and VBA as with VB.net. Searching the newsgroups...
7
5830
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed to be two techniques for earlier versions. But the window.opener='' ;window.close(); and the window.open('','_parent','') ;window.close(); techniques do not work for me. I.e., I still get confirmation message
1
1548
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I was thinking my desktop application a bit easy but when i try to list the open window i got a trouble. I can list my own apps windows but cant list other windows. For Example:: If i run Corel Draw or Ms Paint how can i detect the mspaint or Coreldraw task in my desktop application's taskbar as you have seen in simple xp explorer's taskbar that whenever you run any application a button appears in task bar. and have effects about...
0
9556
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10292
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10262
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10052
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9101
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7589
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6829
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.