Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Saaaaz

@Saaaaz
About
Posts
13
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Installation of windows service ?????
    S Saaaaz

    Now I know, what was the problem. I actually did not make windows-service-installer class public !!! Thanks Sarfraz

    C# csharp help question

  • Installation of windows service ?????
    S Saaaaz

    Thanks for your reply Yes, I did write this class, as I have mentioned in my question. The problem is somewhere else but I don't know where... Sarfraz

    C# csharp help question

  • Installation of windows service ?????
    S Saaaaz

    Hi there, I have written a basic windows service that creates a text file and write some data in it. I have also written a windows service installer for that. Now when I try to install it by using installutil (c:\windows\microsoft.net\framework\v2.0.50727), I get the following error message: No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\...\windowsservice.exe assembly. Remove InstallState file because there are no installers. Can someone tell me why is that so?????????? Thanks. Sarfraz

    C# csharp help question

  • Any one who can answer my question in detail!!!
    S Saaaaz

    I actually want to open Notepad on a remote machine. By writing the following code, I am able to run it, but the problem is that it is runs in background. I can only see it by opening up the windows task manager of the remote machine. ConnectionOptions objConnectionOptions = new ConnectionOptions(); objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate; objConnectionOptions.EnablePrivileges = true; objConnectionOptions.Username = strUserName; objConnectionOptions.Password = strPassword; ManagementScope objManagementScope = new ManagementScope(@"\\remote-computer-name\ROOT\CIMV2", objConnectionOptions); objManagementScope.Connect(); ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null); ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create"); inParamsFinal["CommandLine"] = @"c:\windows\notepad.exe"; ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null); Is there anyone who could help me in sorting out this problem Thanks. Sarfraz

    C# help algorithms question

  • Opening an application on remote machine ....
    S Saaaaz

    I actually want to open Notepad on a remote machine. By writing the following code, I am able to run it, but the problem is that is runs in background. I can only see it by opening up the windows task manager. ConnectionOptions objConnectionOptions = new ConnectionOptions(); objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate; objConnectionOptions.EnablePrivileges = true; objConnectionOptions.Username = strUserName; objConnectionOptions.Password = strPassword; ManagementScope objManagementScope = new ManagementScope(@"\\remote-computer-name\ROOT\CIMV2", objConnectionOptions); objManagementScope.Connect(); ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null); ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create"); inParamsFinal["CommandLine"] = @"c:\windows\notepad.exe"; ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null); Is there anyone who could help me in sorting out this problem Thanks. Sarfraz

    C# help algorithms

  • InvokeMethod ????????????
    S Saaaaz

    So... What exactly I am going to have to do in order to achieve my goal???? Sarfraz

    C# help question

  • InvokeMethod ????????????
    S Saaaaz

    I am doing following to run a remote-machine's process on that remote-machine: ConnectionOptions objConnectionOptions = new ConnectionOptions(); objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate; objConnectionOptions.EnablePrivileges = true; objConnectionOptions.Username = strUserName; objConnectionOptions.Password = strPassword; ManagementScope objManagementScope = new ManagementScope(@"\\remote-machine-name\ROOT\CIMV2", objConnectionOptions); objManagementScope.Connect(); ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null); ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create"); inParamsFinal["CommandLine"] = @"\\remote-machine-name\some-directory\someProgram.exe"; ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null); But for some reason it does not work and I don't know why??????? outParamsFinal["processId"] returns null, instead of a valid processId. Is there any one who could help me in that.............. Thanks Sarfraz

    C# help question

  • System.Management ?????????
    S Saaaaz

    I am trying to run application on remote pc by doing some thing like this: ConnectionOptions objConnectionOptions = new ConnectionOptions(); objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate; objConnectionOptions.EnablePrivileges = true; objConnectionOptions.Username = strUserName; objConnectionOptions.Password = strPassword; ManagementScope objManagementScope = new ManagementScope(@"\\remote-machine-name\ROOT\CIMV2", objConnectionOptions); objManagementScope.Connect(); ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null); ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create"); inParamsFinal["CommandLine"] = @"\\remote-machine-name\some-directory\someProgram.exe"; ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null); But for some reason it does not work and I don't know why??????? outParamsFinal["processId"] returns null, instead of a valid processId. Is there any one who could help me in that.............. Thanks Sarfraz

    C# help question

  • Remoting, Sockets, .... [modified]
    S Saaaaz

    This looks like to be some thing that I actually need: ConnectionOptions objConnectionOptions = new ConnectionOptions(); objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate; objConnectionOptions.EnablePrivileges = true; objConnectionOptions.Username = strUserName; objConnectionOptions.Password = strPassword; ManagementScope objManagementScope = new ManagementScope(@"\\remote-machine-name\ROOT\CIMV2", objConnectionOptions); objManagementScope.Connect(); ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null); ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create"); inParamsFinal["CommandLine"] = @"\\remote-machine-name\some-directory\someProgram.exe"; ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null); But for some reason it does not work and I don't know why??????? outParamsFinal["processId"] returns null, instead of a valid processId. Is there any one who could help me in that.............. Thanks Sarfraz

    C# sysadmin help tutorial

  • Remoting, Sockets, .... [modified]
    S Saaaaz

    Is there someone who could help me with this please What I want to do is that: 1) Execute the server on my machine. 2) Through that server, initialize/execute the clients(.exe) on the client machines(known machine-names/IP addresses). 3) Clients will then start communication with the server. I actually need help with that 2nd step. PsExec looks to be interesting, but I want that step 2 to be done by my server. --------------------------------------------------------------------------------------------- Like for example when I do something like this: Process proc = new Process(); ProcessStartInfo info = new ProcessStartInfo("C:\\client.exe"); proc.Start(); The above will execute the client.exe on my C drive. But I want to execute this file on other machines residing on the same network (LAN). Thanks. Sarfraz. -- modified at 11:27 Tuesday 27th February, 2007 Sarfraz

    C# sysadmin help tutorial

  • Remoting
    S Saaaaz

    Anyone who could guide me a little please..... Thanks.... Sarfraz.

    C# tutorial question

  • Remoting
    S Saaaaz

    Thanks for your reply. You are right. I am basically building client server applications. Now, what I want to do is that: 1) Execute the server on my machine. 2) Through that server, initialize/execute the clients(.exe) on the client machines. 3) Clients will then start communication with the server. I actually need help with that 2nd step. PsExec looks to be interesting, and I will play with it tomorrow and see if that will serve the purpose. But i guess, in this case, I will have to use PsExec instead of my server to initialize the client applications. Thanks. Sarfraz

    C# tutorial question

  • Remoting
    S Saaaaz

    Can someone please tell me: How to run an application on a remote computer (on the same LAN)???? // This, I think will run my notepad on my machine Process.Start("notepad", "C:\\Windows\\notepad.exe"); // This, I think will run that remote machine's notepad on my machine. Process.Start("notepad", "\\\\remote-machine-name\\C$\\Windows\\notepad.exe"); // But how to run that remote machine's notepad on that remote machine.... ???? Thanks for your time ..

    C# tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups