windows

How can I create a shared folder from the Windows command line?

As far as I'm aware, this is done via the net command. However, the help section isn't very helpful, as it only shows me the secondary options and not how to use those. Suppose I had a folder C:\Share_test How would I make it shared from the command line? ...

using 32 bit installshield for packaging 64 bit binaries

Hi, iam using 32 bit installshield to package 64 bit binaries. everything works fine but default location is pointing to c:\program files(x86)\companyname\productname. even though i've selected 64bit at every possible place, somehow it is defaulting to x86 programfiles folder. Any kind of help would be appreciated... ...

Running a executable in another process without creating a new process

I want a write a program that run an executable image without creating a new process... I want to do this because I want to use plink that send a password to a remote ssh server... The plink program sends the password provided in command line .. If I use fork and exec functions someone can see the password provided in command line usin...

Windows Interrupt Context

I am doing driver development under Windows (extended with real-time extension RTX from Interval Zero) Although I don't see anything in the RTX documentation, is there a function that one can use to tell if the current location of code is called from within an interrupt context? ...

How can I ask Windows to print a document?

I want to (programmatically) print documents of various types, by asking Windows to do it (using the default associated application). How can I do this (in .NET or C++/Win32 API)? For example, if I have MS Office and Acrobat Reader installed on the machine, PDF files should be printed by Acrobat Reader, and DOC files should be printed b...

_popen in windows with both stdout and stdin

How to popen with both stdin and stdout in windows in c? ...

How to get crash dump on Handled Exception?

Hi all, My dll is used by a module which dirtily catch all exceptions and just log it in to a file. My issue is that there is an access violation in a customer site which is reproducible only on its computer and I want get able this customer to generate a dump file for this issue. I tried to generate an AV in my dll and generate a dum...

Find Number and resolution to all monitors

How would one poll windows to see what monitors are attached and what resolution they are running at? ...

(Win/C#/.Net) Applet needs to poll at hourly interval - recommendations on best method?

Applet needs to poll for existence of a directory, say, every 1-4 hours, and send a couple emails/NET SENDs if it is not found. Not sure on exact interval yet, but it will definitely not be shorter than 1 hour. The overall "job" will be permanent and continuously-running for the foreseeable future. Applet will be running on a Win2k3 S...

How programmatically submit a form without a submit button in WebBrowser

I navigated to a website with a form that has no submit button but does have form. I would like to submit this form. How to do this using C# and WebBrowser control? ...

How to set multiple desktop backgrounds (dual monitor)

I have a code snippet to set a single image across both monitors but I recently got a second monitor for my laptop and I wanted to modify my code to account for setting a diffrent image to each monitor. Any ideas? (this code snipet for single monitor is: [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern I...

Robocopy CLI syntax won't work.

I just recently saw that xcopy is deprecated and that Robocopy is recommended. I tried moving files with it, but couldn't get it to work. I tried moving files from C:\Downloads\Temp to F:\Temp Both folders had no files directly under them. Downloads\Temp has about 20 folders, some of which have subfolders, which are eventually filled w...

regsrv32 dllregisterserver output

we're shipping a shell extension dll (registered with regsvr32). is there an easy way to get debug output from this dll from another application (so we can send these traces home when something is broken)? any ideas? what's the easiest way to get logdata from the dll to another process? ...

How to password protect an application process

Hello All: Can somebody tell me how to protect an application using password. I mean suppose I start an application (say uTorrent) then I want to provide a password so that nobody can close it or change any thing without password. Thanks Ashwani ...

What is the need of registering a COM component?

I am a .NET developer new to COM. I'd like to know what is the need of registering a COM component? What happens during registration. ...

Custom vocabularies for Speech Recognition in Windows

Using Windows7 speech recognition I wish to create specialised vocabularies for recognising a domain-specific natural language in parts of my application. Thus, for example, a specific text entry box could be linked to its own vocabulary and limited to a small subset of language, e.g. throw the axe at the troll where "troll" is in the...

How to handle events for icon tray in windows using C#

Can any body tell me how to handle events for System tray in windows. I mean, when some body clicks on the system tray icon then I want to check whether to enable the application or not. Is there any way to capture events corresponding to system tray click. ...

How to open a CHM help file from another CHM help file

I have a homepage application, it was used to launch individual applications, and the CHM of homepage has a brief description of individual applications and links to launch other CHM help file. How can I archive it? Is there any API in CHM what I can use? Thanks in advance. ...

Accuracy of stat mtime in Windows

Have an example piece of (Python) code to check if a directory has changed: import os def watch(path, fdict): """Checks a directory and children for changes""" changed = [] for root, dirs, files in os.walk(path): for f in files: abspath = os.path.abspath(os.path.join(root, f)) new_mtime = os.sta...

Base class for windows service

My new project has a design in which there are number windows services for performing different tasks. I have been given a task to create base class from which all of the windows service will inherit. This base class will perform common functions like creating instances of other windows services by iterating through the config file (may ...