Click here to Skip to main content
15,860,844 members
Home / Discussions / C#
   

C#

 
QuestionWifi disconnection problem in windosce application Pin
obalesu12-Jun-09 1:43
obalesu12-Jun-09 1:43 
AnswerRe: Wifi disconnection problem in windosce application Pin
MickCurley12-Jun-09 1:55
MickCurley12-Jun-09 1:55 
QuestionPrint directly with out print dialouge. Pin
yesu prakash12-Jun-09 1:36
yesu prakash12-Jun-09 1:36 
AnswerRe: Print directly with out print dialouge. Pin
Mirko198012-Jun-09 3:56
Mirko198012-Jun-09 3:56 
GeneralRe: Print directly with out print dialouge. Pin
yesu prakash12-Jun-09 18:51
yesu prakash12-Jun-09 18:51 
QuestionIE toolbar development. Pin
Nehal Pandya MCA12-Jun-09 1:15
Nehal Pandya MCA12-Jun-09 1:15 
AnswerRe: IE toolbar development. Pin
DaveyM6912-Jun-09 1:22
professionalDaveyM6912-Jun-09 1:22 
QuestionFile IO over network Pin
paolo.gigante12-Jun-09 1:07
paolo.gigante12-Jun-09 1:07 
Hi Guys, Firstly let me say this, this code is to be used to remove a virus.

Please could anyone help me with the following code, I cant access the network. It is not a permissions error. I cant map all the locations to my drrive either.

using System;
using System.IO;
namespace Delete
{
class Program
{
public static void Main(string[] args)
{
string Slashes = @"\\";
string NetPath = "PCName";
string path = Slashes + NetPath + "\\c:\\temp\\Test.txt";
Console.WriteLine(path);
Console.ReadLine();
try
{
using (StreamWriter sw = File.CreateText(path)) {}
string path2 = path + "temp";
File.Delete(path2);
Console.Write("Press any key to continue . . . ");
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("The process failed: {0}", e.ToString());
Console.ReadLine();
}

}
}
}

the error I ge says

\\istec015\c:\windows\Test.txt

The process failed: System.NotSupportedException: The given path's format is not
supported.

Please can soneone help
AnswerRe: File IO over network Pin
Tom Deketelaere12-Jun-09 1:12
professionalTom Deketelaere12-Jun-09 1:12 
GeneralRe: File IO over network Pin
paolo.gigante12-Jun-09 1:16
paolo.gigante12-Jun-09 1:16 
GeneralRe: File IO over network Pin
Tom Deketelaere12-Jun-09 1:19
professionalTom Deketelaere12-Jun-09 1:19 
GeneralRe: File IO over network Pin
paolo.gigante12-Jun-09 1:25
paolo.gigante12-Jun-09 1:25 
GeneralRe: File IO over network Pin
Tom Deketelaere12-Jun-09 1:28
professionalTom Deketelaere12-Jun-09 1:28 
AnswerRe: File IO over network Pin
SilimSayo12-Jun-09 3:21
SilimSayo12-Jun-09 3:21 
QuestionDouble quotes in c# Pin
jonhbt12-Jun-09 0:08
jonhbt12-Jun-09 0:08 
AnswerRe: Double quotes in c# Pin
Nagy Vilmos12-Jun-09 0:18
professionalNagy Vilmos12-Jun-09 0:18 
AnswerRe: Double quotes in c# Pin
Pete O'Hanlon12-Jun-09 0:25
subeditorPete O'Hanlon12-Jun-09 0:25 
AnswerRe: Double quotes in c# Pin
Luc Pattyn12-Jun-09 2:45
sitebuilderLuc Pattyn12-Jun-09 2:45 
GeneralAbout Message ..... [modified] Pin
Isaac Gordon11-Jun-09 22:50
Isaac Gordon11-Jun-09 22:50 
GeneralRe: About Message ..... Pin
Blue_Boy11-Jun-09 23:01
Blue_Boy11-Jun-09 23:01 
GeneralRe: About Message ..... Pin
Tom Deketelaere11-Jun-09 23:01
professionalTom Deketelaere11-Jun-09 23:01 
GeneralRe: About Message ..... Pin
Pete O'Hanlon11-Jun-09 23:48
subeditorPete O'Hanlon11-Jun-09 23:48 
GeneralRe: About Message ..... Pin
Christian Graus11-Jun-09 23:55
protectorChristian Graus11-Jun-09 23:55 
GeneralRe: About Message ..... Pin
Christian Graus11-Jun-09 23:54
protectorChristian Graus11-Jun-09 23:54 
QuestionChecking string key in resource file Pin
_AnsHUMAN_ 11-Jun-09 20:30
_AnsHUMAN_ 11-Jun-09 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.