Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inconsistent Exceptions While Printing Pin
mfgalizia21-Jan-07 12:45
mfgalizia21-Jan-07 12:45 
GeneralRe: Inconsistent Exceptions While Printing Pin
mfgalizia21-Jan-07 13:23
mfgalizia21-Jan-07 13:23 
GeneralRe: Inconsistent Exceptions While Printing Pin
Luc Pattyn21-Jan-07 13:52
sitebuilderLuc Pattyn21-Jan-07 13:52 
GeneralRe: Inconsistent Exceptions While Printing Pin
mfgalizia21-Jan-07 14:11
mfgalizia21-Jan-07 14:11 
GeneralRe: Inconsistent Exceptions While Printing Pin
Luc Pattyn21-Jan-07 15:00
sitebuilderLuc Pattyn21-Jan-07 15:00 
QuestionAdobe Reader licensing question Pin
standgale17-Jan-07 11:49
standgale17-Jan-07 11:49 
AnswerRe: Adobe Reader licensing question Pin
Luc Pattyn17-Jan-07 16:30
sitebuilderLuc Pattyn17-Jan-07 16:30 
QuestionRun Commands On Other Computers Pin
MartyExodus17-Jan-07 11:26
MartyExodus17-Jan-07 11:26 
Hello, I'm asking yet another question to all of you geniuses.

I've gotten nearly every function working in the program I'm developing for work. The one thing I'm missing, however, is the ability to run commands on remote computers.

At first, I was hoping there was some .NET function to do this easily (you can start and stop services, so why not apps?) However, it does not appear so. Perhaps I missed one.

My next guess was to try to start telnet, and try to use SendKeys.Send() to send my commands... however, the commands pass into my Command Prompt before telnet finishes connecting.

The actual problem is that i'm hoping for a .NET managed way to run remote commands. A workaround for telnet like that would be usable, but only as a last-hope sort of thing. If possible, perhaps there is a .NET managed way to perform the task without running DOS commands remotely? This is what I'm trying to do:
//pseudocode:
RemoteComputer comp = new RemoteComputer("Target");
comp.Run("wuauclt.exe /resetauthorization");
comp.Run("wuauclt.exe /detectnow");
//wuauclt.exe is the Automatic Updates program for Windows.


I'm simply trying to get the remote computer's Windows Update Agent to reset authorization, and then detect updates.

Thanks in advance to any of you who can help.
AnswerRe: Run Commands On Other Computers Pin
Christian Graus17-Jan-07 11:52
protectorChristian Graus17-Jan-07 11:52 
AnswerRe: Run Commands On Other Computers [modified] Pin
MartyExodus17-Jan-07 12:16
MartyExodus17-Jan-07 12:16 
QuestionGetting Row Index for Current Row on DataGridView Pin
Jawa200617-Jan-07 11:18
Jawa200617-Jan-07 11:18 
QuestionHow to control tooltip display time on DataGridView Pin
smcneese17-Jan-07 10:09
smcneese17-Jan-07 10:09 
QuestionHow to show a child relation column into parent DatagridView ? Pin
Marcos Hernandez17-Jan-07 10:05
Marcos Hernandez17-Jan-07 10:05 
QuestionLabel Control Size Problem ..? Pin
Software_Specialist17-Jan-07 10:04
Software_Specialist17-Jan-07 10:04 
AnswerRe: Label Control Size Problem ..? Pin
Christian Graus17-Jan-07 11:52
protectorChristian Graus17-Jan-07 11:52 
QuestionOnEnabledChanged() override never called? Pin
mike montagne17-Jan-07 9:44
mike montagne17-Jan-07 9:44 
QuestionString Manipulations – Stripping a string Pin
Ryno Burger17-Jan-07 9:13
Ryno Burger17-Jan-07 9:13 
AnswerRe: String Manipulations – Stripping a string Pin
Christian Graus17-Jan-07 9:25
protectorChristian Graus17-Jan-07 9:25 
GeneralRe: String Manipulations – Stripping a string Pin
Ryno Burger17-Jan-07 17:39
Ryno Burger17-Jan-07 17:39 
GeneralRe: String Manipulations – Stripping a string Pin
Christian Graus17-Jan-07 18:02
protectorChristian Graus17-Jan-07 18:02 
AnswerRe: String Manipulations – Stripping a string Pin
Luc Pattyn17-Jan-07 9:31
sitebuilderLuc Pattyn17-Jan-07 9:31 
GeneralRe: String Manipulations – Stripping a string Pin
Ryno Burger17-Jan-07 17:42
Ryno Burger17-Jan-07 17:42 
AnswerRe: String Manipulations – Stripping a string Pin
Bassam Saoud17-Jan-07 9:47
Bassam Saoud17-Jan-07 9:47 
QuestionHow to get Visual C# Working Pin
max2929717-Jan-07 8:04
max2929717-Jan-07 8:04 
AnswerRe: How to get Visual C# Working Pin
Colin Angus Mackay17-Jan-07 9:46
Colin Angus Mackay17-Jan-07 9:46 

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.