|
Can I get a console application to run silently (ie without starting up the DOS window) in .Net?
|
|
|
|
|
write it as a service. put all code that does the work in DLL and then you can call it from either a consloe app or service
|
|
|
|
|
I was thinking more the other way around. What I'm trying to do is when my custom protocol is clicked on (either from Outlook/Word/IE), is determine what application to launch via the rest of the protocol format. I have read that registering a custom protocol can simply be done via the Windows Registry where you specify the protocol handler to run. So, my thoughts are that I build a console application where the rest of the information is sent onto a windows service, which then deterimes and launch the required application. Any suggestions is appreciated.
|
|
|
|
|
If you create a windows application but does not create a window for it, it will be effectivelly a DOS application without a console.
|
|
|
|
|
i hope " processInfo.WindowStyle = ProcessWindowStyle.Minimized;" will solve youre problem
below is detailed settings that i am using
ProcessStartInfo processInfo = new ProcessStartInfo(xx, yy);
processInfo.UseShellExecute = false;
processInfo.RedirectStandardError = true;
processInfo.RedirectStandardInput = true;
processInfo.StandardOutputEncoding = Encoding.Default;
processInfo.RedirectStandardOutput = true;
processInfo.CreateNoWindow = true;
processInfo.WindowStyle = ProcessWindowStyle.Minimized;
Process pingProcess = Process.Start(processInfo);
|
|
|
|
|
We have a very simple requirement to replicate data across a network. The requirement is to take data from a staging server (a set of folders) and then move it to 3 servers across the network. I am new to Sync and we have just been able to set the job up so that it syncs up the servers sequentially. Is there any way in which we can have all 3 servers synced up at the same time using the sync framework?
The data moves in a single-direction and there is no need to sync the staging server back. Staging server will always have the latest data. Please let us know if there is a way to handle this.
|
|
|
|
|
Hi all,
When I try to install Web Developer 2008 Express Edition ,then I found the error as below :--->
Microsoft Visual Web Developer 2008 Express Edition - ENU has encountered a problem during setup. Setup did not complete correctly .
MY system configuration is -->
CPU -- P4 3.0 GHZ
RAM -- 2.0 GB
O.S -- Windows xpsp2
and installed software is SQL server 2000,2005 Dotnet 2003 & 2005 .
|
|
|
|
|
You'll have to take a look at the setup log to see what the error actually was. You've given people absolutely nothing to go on here.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I found this on setup log :-->
WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
|
|
|
|
|
First[^] result in google.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I am trying to make a program that can search a directory on the local computer for a certain file and then replace all of the occurrences of that file in the directory and the subdirectories. How can I do this?
|
|
|
|
|
Look at the MSDN documentation on the DirectoryInfo[^] class. There's a link to the class's member functions and properties at the bottom. There's also a File class in System.IO you might want.
Dybs
|
|
|
|
|
Thanks, I got that working.
Now I have another question, Can you reference files in the projects references? Like type in a path and it opens a file in the resources.
|
|
|
|
|
To my knowledge, the "Project References" section is only for other assemblies referenced by your project (i.e. another class library). I'm not too familiar with how to use other resources in a project at the moment.
Dybs
|
|
|
|
|
in first go i would say no
if you put more details of your requirement then we may think an alternative
|
|
|
|
|
I have a C# web service that is creates a file in c:\inetpub\mdws\dwnld. If the web service needs to recreate or delete the file I get the following;
Server was unable to process request. ---> Access to the path 'C:\Inetpub\mdws\dwnld\catwoman.bbd' is denied.
I was receiving this error when doing File.Copy. I was able to create the file by using a FileStream/BinaryWriter. If I try to create the file again I get this error. I'm using FileStream(path, FileMode.Create, FileAccess.Write). I get the same result if I try to do a File.Delete(path) if the file exists before trying to create.
|
|
|
|
|
Maybe the file is being used by another process, have tried to delete it manually?
|
|
|
|
|
Make sure all reader and writer classes which use the file are closed or not. It will never allow to delete the file until and unless those reader or writers are closed.
Either you love IT or leave IT...
|
|
|
|
|
Hi guys.I need help coding for a class project on power(load) flow analysis.Anyone willing to help?will greatly appreciate.Thanks
julez123
|
|
|
|
|
So what code have you written so far?
Kevin
|
|
|
|
|
I've been working on MatLab,but turns out Im required to write using VB or C++.The huge matrices are kind of a challenge for me.Any suggestions?
|
|
|
|
|
Generally, people here won't answer such general questions. What you need to do is write some code and then post a snippet explaining what specifically you're stuck on.
Kevin
|
|
|
|
|
Thanks,Kevin.Will do that.
|
|
|
|
|
If i have multiple version of the same assembly how can i provide choice to client to choose one assembly at run time, suppose analyze i have drop down of two versions , when client select one option that assembly need to be load at run time , is it possible one interviewer ask question tome can any body answer this
|
|
|
|
|
Yes. Now choose which question you want to fit that answer to.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|