This should be a no brainer, but somehow I can't persuade Google to give me a decent answer.
The only think I could find is the VB-only class SpecialDirectories, which has this property:
My.Computer.FileSystem.SpecialDirectories.Desktop
How can i do this in C# ?
...
I have to extract the frames from any video file that can be played using the standard windows media player into separate images. Can you provide me some info on how to proceed, what documentation/books to read, etc?
The language is C/C++.
Also, don't recommend any solution which involves GPL code, the software I have to work on is pro...
On our Linux system we use named pipes for interprocess communication (a producer and a consumer).
In order to test the consumer (Java) code, I would like to implement (in Java) a dummy producer which writes to a named pipe which is connected to the consumer.
Now the test should also work in the Windows development environment. Thus I ...
Hello
I'd like to sell headless Linux servers to SOHO users. Typically, they'll have a DHCP-capable ADSL modem cum switch to which they'll connect their workstation and the server.
In order to just show up with the server, I need to find a way to just plug the server into the switch to get an IP address from the modem, and then have th...
Hello, I'm faced with a Windows 2003 server that doesn't have the Computer Browser service, and I have no idea how to get it back. The Server has "Run Advertised Programs" in the control panel, so that indicates SMS (MS Systems Management Server) may have been used to lock down the server. But we don't have SMS (we've ingerited this se...
We've just recently switched our C++ MFC Application from VS2005 to VS2008. Unfortunately in doing so our UI has appearance problems, with things like group boxes appearing blue rather than black, properties dialogs having a white background etc. I presume that in VS2008, MFC has been changed to respect the OS theme (in my case XP defaul...
I have created some PHP-based intranet resources that require users to log in. The users create their own logins, and I verify that they are logged in using a cookie.
I've been asked if I can tie that login to their Windows login instead. My initial response was "a web page cannot access your Windows login - that would be a security ris...
While I can't get my desktop, running Win7 64, to connect to our network printer, I'd like to be able to paste files, using Input Director, into a share on my laptop. There I'd like a FileSystemWatcher to pick them up and print, then delete them. How can I do thi? I assume I need to hook into the shell somehow, meaning my app can't be...
I have a project which has several components loaded by a single preloader swf.
The preloader swf is strictly AS3 (No flex) and uses Loaders to load two different swfs which both use the flex library (Statically compiled, not rsl).
When I compile all three under linux and run the resulting preloader, one of the swfs fails to load prop...
Back in .NET 1.0 days I wrote a method to return the target of a shortcut on MS Windows. It did this through using an interop to the Windows Script Hosting Object Model and brute forced through the COM interface:
private FileInfo GetFileFromShortcut(FileInfo shortcut)
{
FileInfo targetFile = null;
try
{
IWshRuntime...
I have a DLL I wish to register with my GAC. I enter the command:
gacutil /i c:\temp\msvcr100.dll
and I get the error:
Failure adding assembly to the cache: The module was expected to contain an as
sembly manifest.
All I have is the DLL. Is there a way to create / fake / bypass it?
For those interested, I am attempting to extrac...
We use a third-party PDF Generator library which requires that you specify the TrueType or Type1 file name when using a font other than the 14 or so that are part of the default PDF standard.
So if I want to use Bitstream Arrus Bold I have to know to reference arrusb.ttf.
Short of enumerating all of the files in the font folder and cr...
Not being a windows VBS writer (but user of Windows shells) I use multiple different versions of third-party code which require me to set windows shell environment variables, specifically these are Java related
Looking at the following question I began to ponder what I would need to do to quickly change shell environment variables with...
I recently had to struggle with one installation project (which uses most popular product for creating installations: InstallShield) to make it work for product upgrades (migrating from one version to another). In the end it turned out that I needed to use one long package code but was using some other. It wasted my 8 hours (testing and ...
Hello everyone.
I have this issue that I want to resolve. Lets think we have this situation. We have one instance of notepad.exe running. I run another notepad.exe. Now I want to kill the latter. How can I do it?
If I was able to know the pid of last notepad.exe then I could kill it. But how to get the PID of last opened program?
Anot...
I'm looking for an equivalent to a Cron system for Windows. The idea is to able to schedule a trigger and monitor whether it has run successfully or not.
What the system need to do is the following:
It should be able to trigger Win32 COM objects and/or executables.
It should be able to trigger .NET COM objects and/or .NET executables....
My team need the "Sobol quasi-random number generator" - a common RNG which is famous for good quality results and speed of operation. I found what looks like a simple C implementation on the web. At home I was able to compile it almost instantaneously using my Linux GCC compiler.
The following day I tried it at work: If I compile in V...
I want to set the JAVA_HOME variable from a batch script
...
I know in perfmon you can see how much each core is utilized, and how much total CPU a particular process is using. However I can't seem to find a way to see how much CPU a process is using broken down by cores.
Is there a built-in way to see this information? Is there a programmatic way to see this? (C# preferred) Am I demonstrati...
This is a windows question. I know under normal circumstances a 32 bit process can only access 2GB of RAM (or 3GB with a special switch in the boot.ini file). When running a 32 bit process on a 64 bit operating system, how much memory is available? Are there any special switches or settings that can change this?
How about a Common Langu...