473,625 Members | 2,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Windows Explorer Folder from ASP.net

I have a simple ASP.net form with a button on it that when the user clicks on
the button I want a folder to open in windows explorer.

I have tried the following without success. No error messages . . . it just
doesn't work.

System.Diagnost ics.Process.Sta rt("Explorer.ex e",
"\\ServerName\S ubfolder1\Test\ AccountingRepor ts")

Thanks!!!!
Nov 19 '05 #1
1 5129
Anonymous schrieb:
I have a simple ASP.net form with a button on it that when the user clicks on
the button I want a folder to open in windows explorer.
I guess the explorer should be opened on the client?
I have tried the following without success. No error messages . . . it just
doesn't work.


Because the process runs on the server. Even if Client and server are the
same machine, it will not work, because the new process inherits the
credentials used by asp.net and if you don't use impersonation that is not
the account you are currently working with.

Jan
Nov 19 '05 #2

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

Similar topics

4
22025
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.
0
2443
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...
1
3118
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 base component for my application. Since some of the treeview functionality of Windows Explorer is used in the folder browse dialog I make the assumption that this functionality is possibly exposed for use by developers who require the type of...
3
4812
by: Aaron | last post by:
My application will only be used on windows based machines. I need to open a folder using UNC naming. i.e. \\server\share\folder I do not need to do anything programatically with the folder like count the files, or determine permissions, I just need explorer to launch the specified path. Ideally it would work something like: Dim FolderPath as string
6
6751
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling about the ability. If not, what advice can u provide? thank you in advance. ur help will be appreaciated.
3
9267
by: Mark | last post by:
I'd like to open up Windows Explorer from my .NET desktop application to a specific path. I essentially want to execute: %Systemroot%\explorer.exe c:\somepath\ How can this be done? Thanks in advance. Mark
1
10735
by: =?Utf-8?B?UmFndQ==?= | last post by:
Hi All I am trying to open a folder ( "D:\screenshots") by clicking a button in the web page, which opens the directory/folder in windows explorer in VS. But if i deploy the same application and install it, the same code doesnot work. The code i have written is as follows: Protected Sub Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open.Click Dim sFolderString As String
4
1202
by: =?Utf-8?B?RG91Zw==?= | last post by:
Could someone tell me how to make windows explorer in xp pro open to the folder of my choice? I am tired of having to start from the desktop , computer, c:\ I would like it to open to the c:\"and what ever folder I want" I had someone tell me how to do this in Vista, but when I try to apply these same settings to xp it almost work. One problem is you lose the left pane. Thanks, Doug
4
8926
by: terrybell105 | last post by:
Is there a way I can open Windows Explorer at a specific folder, size the window, and position it in relation to the (already opened) Access window? I have a client who wants this capability. It would be great if I can do it inside an Access control, but I guess that's asking a bit much?
1
3533
by: Devin | last post by:
Hi, I'll explain what I am trying to do and hopefully you can suggest how I can do it, or another way I could create a similar effect. My company uses vCalendar which I know my way around in pretty well. When the administrator of the calendar makes a new event (this person isn't computer savvy) they need to enter in the field for "relevant docs" the folder where the files of interest for the event are located (brochures, fyi, agendas,...
0
8253
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
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
8635
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
8354
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
8497
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
7182
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
6116
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
5570
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
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.