What you say is really difficult to achieve. Probably you should consider the approach of DataBase Servers like MySql. There is a service running and you can still run commands on those servers from command line. But in this case, there is a new instance of program that sends the data through port to the running service.
Hence, what you can do :
1. Instead of accepting the input from commandline, accept it through port. You already have a port handler in your server.
2. Create a CommandLine application to accept data from keyboard, send it through port to the service.
Now the user can simply type the command in the commandline, it gets routed through the port and goes to the server.
Added benefit is that this can be userful for remote monitoring as well.
Our release build process (compile, build, create iso, etc) is run multiple times a day with the use of 4NT batch files on a server. During the process, notifications about the progress are sent to all developers informing them about new compiler errors, files being locked etc. This way the people who need to fix something know they have to and the build process can be fired up again ASAP. They receive these messages in a small receiver app using UDP. The messages are sent with a broadcaster app using command line parameters. In the batch files we just execute the broadcast tool with some parameters, it sends the message and shuts down again. (like: broadcast <message type=""> <message to="" send=""> / broadcast error file not found: aFile.exe). The broadcaster and receiver tools are all built in Delphi. I want to rebuild it using C# as my first project (i'm currently making the transition from Delphi to C# guru (inhouse) :P)
Do you get the idea now? (hope so!)
- Life would be so much easier if I had the source code!
- If C# had true garbage collection, most applications would delete themselves upon execution
(like: broadcast / broadcast error file not found: aFile.exe). The broadcaster and receiver tools are all built in Delphi. I want to rebuild it using C# as my first project
Two applications to migrate, starting with the broadcaster. As soon as you create a new console-application you'll see where to get the command-line arguments from. Are all options specified as arguments, or will you be reading user-input directly from the console?
Coming from Delphi, I guessed that it's now based on the Indy-components? You might be interested in the example on the UdpClient[^] class.
There is no simple way to do this. You would have to write a command line application that communicated to the running application, either via Remoting or via a common text file or database. I would recommend Remoting[^] as it will be more flexible and less processor / disk intensive.
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
I am updating a Excel Worksheet cell value to 2009.03 and it become change to 2009.3.
I tried may ways to solve the issue but value always changed to "2009.3" instead of "2009.03" on Server. It is working on my system but not on Win XP 2003 Server System.
I used to set excel cell NumberFormat to "@", "0.00", "####.##"
and even tried to concatenated "'" before value but result not come.
The excel file is of 2007 format(.xlsx).
<u>>My Code is</u>
Microsoft.Office.Interop.Excel.Workbook WorkBook = null;
Microsoft.Office.Interop.Excel.Worksheet Sheet = null;
WorkBook = Utility.GetWorkbook2007(templateFileWPath);
Sheet = (Microsoft.Office.Interop.Excel.Worksheet)WorkBook.Worksheets;
Microsoft.Office.Interop.Excel.Range TPCellRange = (Microsoft.Office.Interop.Excel.Range)Sheet.Cells[this.GetRowIndex(Sheet, this.CellAddress), this.GetColumnIndex(Sheet, this.CellAddress)];
or also tried
CellValueRange.NumberFormat = "@";
My application involves installation of different parts of the project in different computers on a local network. I want the administrator to check and/or start/stop different services on different PC's remotely using command line. I use C#. I don't know what technology to use. Should I use telnet/ssh or is use of WMI(System.Management Name Space) enough?.Or is there another method?. I don't want to use remote desktop or window's built-in telnet client. Nor do I want to use remote admin software like pcAnywhere. If it is possible to use both telnet/ssh and WMI, which one is better?.
yes you are right Eddy Vluggen. But i want to start/stop exe's, not registered services alone. also, I want to make the commands simple, for example, by giving list of numbers to choose and choosing the number runs something or brings another list of choices.
Yes you are right but I also want to start/stop exe's, not installed services alone. also I want to make the commands simple, for example, by giving a list of choice(number) and selecting a number runs a service or exe file etc
Iam very nave to this community. If some body is using Vista or W-7, we get search option on Top right of the exlplorer. The moment we type some sam, it searches and the list will be displayed, from where we can we double click the appopriate window will be displayed.
I want to know that what is the control that he is using and how he is displaying the window upon double click.
Can any body help me out.. I want to develop a Search Engine tool same like W-7 or Vista.