Click here to Skip to main content
15,896,201 members

Comments by itsureshuk (Top 117 by date)

itsureshuk 23-Mar-18 21:53pm View    
http://formvalidation.io/ bootstrap validation using.
http://formvalidation.io/validators/
itsureshuk 31-Jan-17 0:51am View    
Yes we using Token Agent
itsureshuk 2-Feb-16 11:08am View    
http://raresql.com/tag/merge-or-combine-multiple-rows-records-to-single-column-record-with-comma-delimiters/

I refered this link , working on that
itsureshuk 6-Jan-16 1:17am View    
In Chrome and Firefox its working... Only in IE its not working...
itsureshuk 20-Oct-15 10:02am View    
Hi OriginalGriff,
In ASP.NET application i am trying to implement Run Remote Application.

I am using below code
http://stackoverflow.com/questions/15937167/run-a-command-in-a-windows-remote-server-and-get-back-the-console-output-in-c-sh/15942781#15942781

public string executeCommand(string serverName, string username, string password, string domain=null, string command)
{
try
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = false;
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
if (null != username)
{
if (null != domain)
{
startInfo.Arguments = "/C \"psexec.exe \\\\" + serverName + " -u " + domain+"\\"+username + " -p " + password + " " + command + "\"";
}
else
{
startInfo.Arguments = "/C \"psexec.exe \\\\" + serverName + " -u " + username + " -p " + password + " " + command + "\"";
}
}
else
{
startInfo.Arguments = "/C \"utils\\psexec.exe "+serverName+" "+ command + "\"";
}
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();

if (process.ExitCode == 0 && null != process && process.HasExited)
{
return process.StandardOutput.ReadToEnd();
}
else
{
return "Error running the command : "+command;
}
}
catch (Exception ex)
{
throw ex;
}
}


But i am getting error, my server application is not running.And also i need to run My asp.net application in domain (hosting server), so user while clicking automatically should run.