Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: read only Pin
Richard MacCutchan13-Nov-13 10:42
mveRichard MacCutchan13-Nov-13 10:42 
GeneralRe: read only Pin
seeker6213-Nov-13 10:49
seeker6213-Nov-13 10:49 
GeneralRe: read only Pin
Richard MacCutchan13-Nov-13 10:57
mveRichard MacCutchan13-Nov-13 10:57 
GeneralRe: read only Pin
Ron Nicholson14-Nov-13 3:24
professionalRon Nicholson14-Nov-13 3:24 
GeneralRe: read only Pin
Nicholas Marty15-Nov-13 4:49
professionalNicholas Marty15-Nov-13 4:49 
AnswerThe system cannot find the file specified for process.start(). Pin
subhendun dan13-Nov-13 4:53
subhendun dan13-Nov-13 4:53 
GeneralRe: The system cannot find the file specified for process.start(). Pin
OriginalGriff13-Nov-13 5:39
mveOriginalGriff13-Nov-13 5:39 
GeneralRe: The system cannot find the file specified for process.start(). Pin
subhendun dan15-Nov-13 2:00
subhendun dan15-Nov-13 2:00 
yes dnscmd.exe installed in my computer under c:\windows\system32 (OS-Windows7). Now I am just trying to execute dns command using the below code-
C#
private void button3_Click(object sender, EventArgs e)
        {
		/*
            string strTid = "T00000013";
			string strDnsServerName= "OD-EV-W-DC-5.7-11T.COM";
			string strZoneName= "7-11t.com";
            string strIP = "10.172.13.10";

            string str = "dnscmd" + " " + strDnsServerName + " " + "/RecordAdd" + " " + strZoneName + " " + strTid + " " + "A" + " " + strIP;
			
			Process.Start("cmd.exe", "/K" +str);
		*/
            
            Process.Start("C:\\Windows\\System32\\cmd.exe", "/K \"dnscmd\"");
            
        }


The above single line code works fine when we replace dnscmd to nslookup,ipconfig etc but when I am trying to run the single line code with dnscmd it opens a cmd window and showing "not recognized as an internal or external command" message but if I open a cmd window from run (not from c# programe) in the same computer (working fine from all directory) then dnscmd works fine and able to add dns entry also.
So, is there any possibility on access issue or anything else which causing abnormal behaviour of dnscmd. Please help!!!!
Subhendu

GeneralRe: The system cannot find the file specified for process.start(). Pin
OriginalGriff15-Nov-13 3:52
mveOriginalGriff15-Nov-13 3:52 
QuestionC# chart height ,width based on data? Pin
Member 1027623012-Nov-13 19:57
Member 1027623012-Nov-13 19:57 
AnswerRe: C# chart height ,width based on data? Pin
Mycroft Holmes12-Nov-13 21:31
professionalMycroft Holmes12-Nov-13 21:31 
QuestionRe: C# chart height ,width based on data? Pin
Member 1027623012-Nov-13 22:19
Member 1027623012-Nov-13 22:19 
AnswerRe: C# chart height ,width based on data? Pin
Mycroft Holmes12-Nov-13 23:24
professionalMycroft Holmes12-Nov-13 23:24 
AnswerRe: C# chart height ,width based on data? Pin
GuyThiebaut12-Nov-13 23:41
professionalGuyThiebaut12-Nov-13 23:41 
GeneralRe: C# chart height ,width based on data? Pin
Member 1027623013-Nov-13 0:16
Member 1027623013-Nov-13 0:16 
Questionnearest postcode Pin
Member 1037988612-Nov-13 16:58
Member 1037988612-Nov-13 16:58 
AnswerRe: nearest postcode Pin
Mycroft Holmes12-Nov-13 21:28
professionalMycroft Holmes12-Nov-13 21:28 
GeneralRe: nearest postcode Pin
Member 1037988613-Nov-13 2:16
Member 1037988613-Nov-13 2:16 
QuestionUnit Testing with Serial Port Pin
Blubbo12-Nov-13 9:35
Blubbo12-Nov-13 9:35 
AnswerRe: Unit Testing with Serial Port Pin
Ron Beyer12-Nov-13 17:46
professionalRon Beyer12-Nov-13 17:46 
GeneralRe: Unit Testing with Serial Port Pin
Blubbo12-Nov-13 22:56
Blubbo12-Nov-13 22:56 
AnswerRe: Unit Testing with Serial Port Pin
Blubbo12-Nov-13 23:03
Blubbo12-Nov-13 23:03 
AnswerRe: Unit Testing with Serial Port Pin
Marco Bertschi13-Nov-13 0:15
protectorMarco Bertschi13-Nov-13 0:15 
QuestionHow To Access from C# python list of multi elements Pin
Member 817314812-Nov-13 8:35
Member 817314812-Nov-13 8:35 
AnswerRe: How To Access from C# python list of multi elements Pin
Richard Deeming12-Nov-13 8:43
mveRichard Deeming12-Nov-13 8:43 

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.