473,396 Members | 1,767 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,396 software developers and data experts.

Open a Folder From ASP.NET

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
sFolderString = "D:\screenshots"
Process.Start(sFolderString, "")
End Sub

Can anyone help me out...
Feb 12 '07 #1
1 10707
You cant do this - it will try and open the folder on the webserver and that
would display the window that process.start will invoke on the webservers
desktop!

Get your self a folder explorer example off the web.
http://aspnet.4guysfromrolla.com/articles/011503-1.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Ragu" <Ra**@discussions.microsoft.comwrote in message
news:F3**********************************@microsof t.com...
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
sFolderString = "D:\screenshots"
Process.Start(sFolderString, "")
End Sub

Can anyone help me out...

Feb 12 '07 #2

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

Similar topics

4
by: Yuri Vorontsov | last post by:
Hallo! We have troubles (post XP SP2) to open local folders from the web application: - the web application allows users to select a local file (input type=file) - the system DOES NOT upload...
4
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an...
4
by: Goober | last post by:
I have a dotnet web app that opens & works fine. There's another application on the same server, in a folder below the web application. Both web apps are set up as virtual directories there and...
8
by: Kenneth P | last post by:
Hi, I've had a hd crash (with proper data backup) and I wonder what way would be the best way to set up an old project with all code from a backup hd in a new vs.net2003 environment? TIA ...
4
by: santel_helvis | last post by:
Hi there, I wanna open the folder using asp.net. I am using anchor link to do that. But in href part how shall I give the location. Anyone plz help me out. Thanks in advance
0
by: Aaron | last post by:
I have two imagebuttons in my asp.net (I'm using vb.net) application. I need one of them to open a folder and one to open a file within the aforementioned folder. I am not sure which class...
4
by: g4356 | last post by:
Hi, A new baby question: I downloaded a dot net project and saved it to my local disk. When I tried to open this project, a message popped up: "Unable to open web project "test/myfirstweb"/ The...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
7
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking...
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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
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.