im trying to open a directory (as if i had browsed to the directory in
windows) from code
im checked system.io.directory but there doesnt seem to be an open command
(or similar)
is there an easy way to do this?
thanks
Mike Fellows 13 1602
Hi Mike,
I assume you are looking for the folderbrowserdialog which is in Net 1.1
Before Herfried says it there is a bug in it from which I understand that it
can set your program totally out of scope when the paths have more than 128
characters.
Cor
Thanks Cor
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl... Hi Mike,
I assume you are looking for the folderbrowserdialog which is in Net 1.1
Before Herfried says it there is a bug in it from which I understand that
it can set your program totally out of scope when the paths have more than
128 characters.
Cor
Hi Cor,
how on earth do i use this - ive found it in system.windows.forms
but i seem unable to get anything from it
i simply want to open c:\test folder
but cant seem to get it to do this
Thanks
Mike
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl... Hi Mike,
I assume you are looking for the folderbrowserdialog which is in Net 1.1
Before Herfried says it there is a bug in it from which I understand that
it can set your program totally out of scope when the paths have more than
128 characters.
Cor
Cor,
thats seems way over complicated just to do what i want
say i had a folder (c:\myfolder)
to get to that normally i would click
mycomputer
c:
myfolder
and i would have a folder showing all the files within c:\myfolder
i just want to open that folder from code
hope that helps
Mike
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl... Hi Mike,
I was making a sample and than thought this should be on MSDN as well and
it is with a complete sample. If this is not what you meant reply than?
http://msdn.microsoft.com/library/de...classtopic.asp Because I am still in doubt.
Cor
Hi Mike,
Dim fd As New FolderBrowserDialog
fd.SelectedPath = "c:\myfolder"
fd.ShowDialog()
(That folder must exist when you do it this way)
Do you mean this?
Cor
Hi Cor,
Sadly not
erm i want to basically use explorer.exe
the normal windows browser i just want to show some files my code has just
created
i dont want to select any files i just want to show that there there to the
user
your help is much appreciated on this
Mike
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uh**************@tk2msftngp13.phx.gbl... Hi Mike,
Dim fd As New FolderBrowserDialog fd.SelectedPath = "c:\myfolder" fd.ShowDialog() (That folder must exist when you do it this way)
Do you mean this?
Cor
Armin,
Thanks that was exactly what i wanted
although........
if i call explorer.exe it works a treat and does what i wanted only it opens
"My Documents"
if i call "explorer.exe c:\"
i get "The System Cannot Find The Specified File"
if i call "explorer.exe /n,/root,c:\"
i get the same error message - i seem unable to specify a directory - i must
be doing something silly as im stumped by this
Thanks
Mike
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de... "Mike Fellows" <mi***************@equityhouse.co.uk> schrieb Sadly not
erm i want to basically use explorer.exe
the normal windows browser i just want to show some files my code has just created
You should have mentioned that you want to open explorer.exe....
Use System.Diagnostics.Process.Start and http://support.microsoft.com/default...b;EN-US;130510 -- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
"Mike Fellows" <mi***************@equityhouse.co.uk> schrieb You should have mentioned that you want to open explorer.exe....
Use System.Diagnostics.Process.Start and http://support.microsoft.com/default...b;EN-US;130510
Thanks that was exactly what i wanted
although........
if i call explorer.exe it works a treat and does what i wanted only it opens "My Documents"
if i call "explorer.exe c:\"
i get "The System Cannot Find The Specified File"
if i call "explorer.exe /n,/root,c:\"
i get the same error message - i seem unable to specify a directory - i must be doing something silly as im stumped by this
This works here:
Process.Start("explorer.exe", "/n,/root,c:\")
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Armin,
once again you sorted my issues
many thanks
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de... "Mike Fellows" <mi***************@equityhouse.co.uk> schrieb You should have mentioned that you want to open explorer.exe....
Use System.Diagnostics.Process.Start and http://support.microsoft.com/default...b;EN-US;130510
Thanks that was exactly what i wanted
although........
if i call explorer.exe it works a treat and does what i wanted only it opens "My Documents"
if i call "explorer.exe c:\"
i get "The System Cannot Find The Specified File"
if i call "explorer.exe /n,/root,c:\"
i get the same error message - i seem unable to specify a directory - i must be doing something silly as im stumped by this
This works here:
Process.Start("explorer.exe", "/n,/root,c:\")
-- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
On Thu, 3 Jun 2004 18:26:58 +0200, Armin Zingler wrote: This works here:
Process.Start("explorer.exe", "/n,/root,c:\")
I tried this and it seems more straightforward:
Process.Start("c:\test")
--
Chris
To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: haynesc |
last post by:
Hi,
I'm having a problem where when trying to open a file in write mode, I
get an IOError stating no such file or directory. I'm calling an
external program which takes an input file and...
|
by: jbailo |
last post by:
http://dmoz.org/license.html
The Open Directory is a compilation
of many different editors' contributions.
Netscape Communications Corporation (`Netscape')
owns the copyright to the compilation...
|
by: KevinGravelle |
last post by:
Hello,
I am running an Apache web server and my httpd configuration file is
utilizing the aspdotnet_module in order to run an ASP.NET application.
Whenever I try and open my existing web...
|
by: John Black |
last post by:
Hi,
I have a code to open a file like this,
int r = open("file1", O_RDONLY, 0);
let's say the executable a.out is at <dir> and file1 is also at
<dir>, then no problem.
The problem is when...
|
by: CM |
last post by:
Hi there:
I have a web project which can be open and run without problem. I didn't
open the web application for a period and during which I didn't modified any
IIS items, but now I cannot open any...
|
by: CM |
last post by:
Hi there:
I have a web project which can be open and run without problem. I didn't
open the web application for a period and during which I didn't modified any
IIS items, but now I cannot open any...
|
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...
|
by: Paul Brady |
last post by:
I volunteer at a youth ministry agency and help them with their
student database. They have two computers, both running Windows XP.
Both have Office 2002 installed without Access, except that...
|
by: dancer |
last post by:
Using ASP.net 1.1 and Microsoft Access.
I received the following error message. Why? I have closed the Access
file. I have another very small access file that opens with no trouble with
the...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |