PC Review


Reply
Thread Tools Rate Thread

Open windows explorer at server path

 
 
Colin Williams
Guest
Posts: n/a
 
      14th Sep 2006
I am trying to open windows explorer at a specific path on a server.
Path is not found
whe run. It works ok using a local path. How do i address a server?

Code as follows;
{
System.Diagnostics.ProcessStartInfo exploreTest
= new System.Diagnostics.ProcessStartInfo();
exploreTest.FileName = "explorer.exe";
exploreTest.Arguments ="\"\\servername\\path\\";
System.Diagnostics.Process.Start(exploreTest);
}
Thanks
Colin Williams

 
Reply With Quote
 
 
 
 
Vadym Stetsyak
Guest
Posts: n/a
 
      15th Sep 2006
Hello, Colin!

CW> I am trying to open windows explorer at a specific path on a server.
CW> Path is not found
CW> whe run. It works ok using a local path. How do i address a server?

CW> Code as follows;
CW> {
CW> System.Diagnostics.ProcessStartInfo exploreTest
CW> = new System.Diagnostics.ProcessStartInfo();
CW> exploreTest.FileName = "explorer.exe";
CW> exploreTest.Arguments ="\"\\servername\\path\\";
CW> System.Diagnostics.Process.Start(exploreTest);
CW> }

You're missing double "\" symbol. Server name must be prefixed with
doble "\"

So, change this line of code
exploreTest.Arguments ="\\\\servername\\path\\";
or
exploreTest.Arguments = @"\\servername\path\";

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open file from path in cell and open from current file path abc987 Microsoft Excel Programming 0 4th May 2011 02:44 PM
how to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 7th May 2008 11:06 PM
Open windows explorer at server path Colin Williams Microsoft C# .NET 3 15th Sep 2006 01:05 AM
set path, change path - path grayed out John Smith Windows XP Help 1 12th Feb 2005 02:56 PM
set path, change path - path grayed out John Smith Windows XP General 1 12th Feb 2005 02:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:57 AM.