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
Folderpath ="\\server\shar e\folder"
opendir(folderp ath)
I am sure I do not need to use directory or directoryinfo classes, it seems
to me there should be an easy way to launch explorer and pass a path to it.
Let me know....
Any ideas?
Thanks,
Aaron 3 4818
The easiest way would be to have the user click on a hyperlink.
<a href='\\server\ share\folder'>c lick to open folder</a>
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Aaron" <aa***@jonharve y.com> wrote in message
news:u9******** ********@TK2MSF TNGP14.phx.gbl. .. 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 Folderpath ="\\server\shar e\folder" opendir(folderp ath)
I am sure I do not need to use directory or directoryinfo classes, it seems to me there should be an easy way to launch explorer and pass a path to it. Let me know....
Any ideas?
Thanks, Aaron
Can I complicate things a little?
I am using an imagebutton, but I can't figure out how to lauch a url or
hyperlink. I'm sure it is pretty easy, I am just not seeing the light...
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:uZ******** ********@TK2MSF TNGP14.phx.gbl. .. The easiest way would be to have the user click on a hyperlink. <a href='\\server\ share\folder'>c lick to open folder</a>
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Aaron" <aa***@jonharve y.com> wrote in message news:u9******** ********@TK2MSF TNGP14.phx.gbl. .. 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 Folderpath ="\\server\shar e\folder" opendir(folderp ath)
I am sure I do not need to use directory or directoryinfo classes, it seems to me there should be an easy way to launch explorer and pass a path to it. Let me know....
Any ideas?
Thanks, Aaron
Do you need it to be an imagebutton? Is there some reason you need the
postback?
If not, just put an image inside the hyperlink:
<a href='\\server\ share\folder'> <img.../> </a>
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Aaron" <aa***@jonharve y.com> wrote in message
news:O6******** ********@TK2MSF TNGP15.phx.gbl. .. Can I complicate things a little? I am using an imagebutton, but I can't figure out how to lauch a url or hyperlink. I'm sure it is pretty easy, I am just not seeing the light...
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:uZ******** ********@TK2MSF TNGP14.phx.gbl. .. The easiest way would be to have the user click on a hyperlink. <a href='\\server\ share\folder'>c lick to open folder</a>
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Aaron" <aa***@jonharve y.com> wrote in message news:u9******** ********@TK2MSF TNGP14.phx.gbl. .. > 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 > Folderpath ="\\server\shar e\folder" > opendir(folderp ath) > > I am sure I do not need to use directory or directoryinfo classes, it > seems > to me there should be an easy way to launch explorer and pass a path to > it. > Let me know.... > > Any ideas? > > Thanks, > Aaron > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim Failes |
last post by:
Our application needs to write some application specific data, but I have
not been able to find the recommended method to obtain the correct pathname.
I have found many references to the SHGetFolderPath function, but have not
been able to find any way to access this in VB.Net. Apologies in advance if I
have missed something obvious...
I have implemented this in the following function, using the Registry Key
HKEY_CURRENT_USER\Volatile...
|
by: Job Lot |
last post by:
How can I find path of windows folder using vb.net? It could be winnt or
windows depending upon the os.
System.Environment.SpecialFolder enumeration does not have a constant for
windows folder.
|
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 the file but stores the path to the folder containing this file into a
database.
- the path to the local folder is linked as <a href=file:///blablabla/folder>Open folder</a>
- we used to be able to open the folder by clicking on the link above but...
|
by: Chuck Anderson |
last post by:
I use apache, Php and MySql on my Windows XP machine at home. I have
been doing so successfully now for a long time. However, I am now
trying to use fopen to open secure URLs (https) and having no luck. I
have installed openssl and enabled the extension (phpinfo says so,
too). But still it does not work.
I now realize that I need to have https and ftps as registered streams,
i.e.,
Registered PHP Streams php, http, ftp, https,...
|
by: Pmcg |
last post by:
Hi,
I've been using
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) to get
the application data folder for ASP.Net applications using IIS5.0 where it
works for both the ASPNet machine account and for a different account if i
configure the ASP.Net process to run as an alternative account by altering
the machine.config file. It gives me back
C:\Documents and Settings\myuser\Application Data where i'm using a local
user...
| |
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
Kenneth P
|
by: Bruce |
last post by:
I am doing development work on an asp.net app and a web service on a Win XP
Pro SP2 development workstation, using vs.net 2003. For reasons that I
wont try to explain here, I recently moved the application files from
/inetpub/wwwrooot to a directory within "my documents", and I changed the
home directory within IIS accordingly.
However, now when I try to open a new Web Service project in vs.net, I get a
dialog box with this error: ...
|
by: Seth Darr |
last post by:
I'm working on migrating an Classic ASP/VB6 COM application from an NT
Server with IIS<6 to an virtual machine running Windows Server 2003 and
IIS 6. I've worked through most of the obvious problems resulting from
IIS 6 prohibiting ASP and SSI etc, but I've hit a peculiar wall.
One ASP page uses a VB6 COM object that basically reads from an .INI
file and uses it to open another file. The existing code uses this line
(in VB6) to do this:...
|
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 file path
"D:\dnet\webproj\myfirstweb\home" does not correspond to the URL
'http://localhost:/test/myfirstweb'. The two need to map to the same server
location.
HTTP Error 404:Object not found".
|
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,...
|
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...
| |
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |