Click here to Skip to main content
15,908,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 8:49
cje23-Jun-04 8:49 
GeneralRe: DataGrid and end edit Pin
Heath Stewart23-Jun-04 9:00
protectorHeath Stewart23-Jun-04 9:00 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 9:04
cje23-Jun-04 9:04 
QuestionHow-to? Connect to remote pc over LAN connection ? Pin
Adel83k23-Jun-04 5:57
Adel83k23-Jun-04 5:57 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
eggie523-Jun-04 6:44
eggie523-Jun-04 6:44 
GeneralRe: How-to? Connect to remote pc over LAN connection ? Pin
Adel83k24-Jun-04 1:09
Adel83k24-Jun-04 1:09 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
Steven Campbell23-Jun-04 7:19
Steven Campbell23-Jun-04 7:19 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
sides_dale23-Jun-04 15:44
sides_dale23-Jun-04 15:44 
This easiest way is to use the WSH and vbscript. Here is a quick sample

<br />
'strCompName = "." 'This is for the local host<br />
strCompName = "computer name" ' ip address may work as well<br />
Set objWMIService = GetObject("winmgmts:" _<br />
    & "{impersonationLevel=impersonate}!\\" & strCompName & "\root\cimv2")<br />
Set colProcessList = objWMIService.ExecQuery _<br />
    ("Select * from Win32_Process Where Name = 'Notepad.exe'")<br />
For Each objProcess in colProcessList<br />
    objProcess.Terminate()<br />
Next<br />


Save the code above as stopnotepad.vbs and call it from the commandline with cscript stopnotepad.vbs

You may want to check out the MSDN section on scripting, particullarly the scripting clinic and scripting guys.
GeneralSuggestion Pin
vcorn23-Jun-04 5:23
vcorn23-Jun-04 5:23 
GeneralRe: Suggestion Pin
Werdna23-Jun-04 6:59
Werdna23-Jun-04 6:59 
QuestionHow to set row height of listview ? Pin
Old Gun23-Jun-04 5:16
Old Gun23-Jun-04 5:16 
AnswerRe: How to set row height of listview ? Pin
Werdna23-Jun-04 7:06
Werdna23-Jun-04 7:06 
GeneralReport Services nice printing Pin
Wally Wally23-Jun-04 2:48
Wally Wally23-Jun-04 2:48 
GeneralRe: Report Services nice printing Pin
Heath Stewart23-Jun-04 5:17
protectorHeath Stewart23-Jun-04 5:17 
QuestionCan you Draw Shapes on Forms/PictureBoxes? Pin
ZeldaFreak23-Jun-04 1:54
ZeldaFreak23-Jun-04 1:54 
AnswerRe: Can you Draw Shapes on Forms/PictureBoxes? Pin
Daniel M. Edwards23-Jun-04 3:12
Daniel M. Edwards23-Jun-04 3:12 
QuestionControl to display web pages in my winforms app? Pin
matthias s.23-Jun-04 1:20
matthias s.23-Jun-04 1:20 
AnswerRe: Control to display web pages in my winforms app? Pin
LongRange.Shooter23-Jun-04 3:28
LongRange.Shooter23-Jun-04 3:28 
GeneralRe: Control to display web pages in my winforms app? Pin
matthias s.23-Jun-04 6:22
matthias s.23-Jun-04 6:22 
GeneralRe: Control to display web pages in my winforms app? Pin
LongRange.Shooter23-Jun-04 8:48
LongRange.Shooter23-Jun-04 8:48 
QuestionSmart client template solution ??? Pin
gicio23-Jun-04 0:40
gicio23-Jun-04 0:40 
AnswerRe: Smart client template solution ??? Pin
LongRange.Shooter23-Jun-04 4:12
LongRange.Shooter23-Jun-04 4:12 
GeneralFile Path's question Pin
jzb23-Jun-04 0:32
jzb23-Jun-04 0:32 
GeneralRe: File Path's question Pin
Dave Kreskowiak23-Jun-04 4:26
mveDave Kreskowiak23-Jun-04 4:26 
GeneralRe: File Path's question Pin
Heath Stewart23-Jun-04 5:04
protectorHeath Stewart23-Jun-04 5:04 

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.