windows

Signing a Windows application given a .SPC file?

My client wants to sign the application code. He gave me an .spc file for signing a .NET desktop application. How should I use it within the app? Thanks ...

Can I be sure that the code I write is always executed in the same thread?

I normally work on single threaded applications and have generally never really bothered with dealing with threads. My understanding of how things work - which certainly, may be wrong - is that as long as we're always dealing with single threaded code (i.e. no forks or anything like that) it will always be executed in the same thread. I...

What would be the Windows batch equivalent for HTML's input type="password"?

I need to get authentication credentials from the users within a Windows script but the classic "first Google result" approach: SET /P USR=Username: SET /P PWD=Password: is less than satisfying, so I was wondering if there's let's say an "equivalent" to HTML's input type="password"? Any comment would be really appreciated, thanks mu...

How to monitor / log files access to remote folders under windows ?

Hello, I would like to log the name of all the files I access from a particular network share (and the process accessing the the file). What are the solutions in C++ / Win32 preferably ? Kind Regards, Bear ...

Is there a way to Deploy a .Net application without using an MSI?

I have a .Net program that I want to install on a terminal server. In the past I've created installer projects and generated an MSI. However, terminal servers require all users be bumped off before running an MSI and I want to avoid that. Is there a way to do an install without a MSI? Sometimes for some user accounts I can simply cop...

Running a Windows Batch Script to Startup Multiple Files

I'm trying to replace the programs that run from my startup directory with a batch script. The batch script will simply warn me that the programs are going to run and I can either continue running the script or stop it. Here's the script as I have written so far: @echo off echo You are about to run startup programs! pause ::load o...

Windows default size for console application

While testing a console app, I set the properties of the console window to be only 3 lines high. This change has somehow stuck, meaning that new console windows default to 3 lines high. If I create a new shortcut on the desktop, and point it to cmd.exe, the window that opens is 3 lines high. Of course, I can alter this value using th...

Oracle: TNS-12532: TNS:invalid argument

Trying to establish a connection between my windows box (2003 server) and the oracle (11g) database. I'm able to successfully ping the oracle host from the windows box. However tnsping command fails with the error tns-12532 error. Any ideas to solve this issue? ...

Print from a windows App - data from an Oracle DB on Linux

We have an Oracle DB running on Linux. When data is ready to report, a value is placed in a table in the DB. Presently an app is scheduled to run every 10 seconds to check for the value and if it's there it prints out the report. NOT prety. How can I make this pretty? I sort of envision the Oracle DB somehow triggering the windows s...

Running Batch File in background when windows boots up

How do I run a batch file each time windows boots up also I need to run it in the back ground(without that command window getting displayed)? I use Windows Xp. My actuall requirement is I want to start the Tracd server using the command line commands whenever Windows boots up. Thanks... ...

Adding desktop shortcuts to "My Computer" on Windows 2008 Server

Now that I've finnaly moved to doing some development/support work for Windows 2008 I find myself annoyed by the lack of one feature I just can't enable: the desktop shortcut to "My Computer" I've grown used to. I know how to enable this on XP and 2003, but I just can't find the setting on 2008. How can a user configure which desktop i...

Why does < C-a> (CTRL+A) not work under gvim on windows?

I'm trying to use the < C-a> (CTRL+A) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "selects all" (i.e. highlights or visually selects all text in the current window). How can I change this behaviour or alternatively how can I...

Automatically copying files from a Linux machine to a Windows machine

I need to automatically copy files from a linux machine to a windows one every day. I'm looking for something simple and secure like scp, rsync, sftp. Unfortunately, I'm at a loss of how to set this up on the Windows machine. Does anyone know how to do this? ...

Uninstall Windows Service from Deployment package

Hi, I know that you can install your Windows Service via the VS deployment system which I've done. But how do you deploy updates after that? Each time I deploy a new version, it says that the service already exists and exits. I tried to add a little DOS CMD file with the following: net stop [ServiceName] sc delete [ServiceName] It wo...

A Good, Free screen sharing program for pair programming?

I am looking for a good, free (preferred) screen sharing program that works well for pair programming and code review sessions for Windows (Vista x64, Server 2008). It should allow either person take control of the screen and be fairly responsive for text editing over decent broadband connections. Additional features like the ability to ...

How do I stop/start a scheduled task on a remote computer programatically?

I want to write a script that will stop a scheduled task on a remote computer, do some stuff, and then start the schedule task back up. How can I do it? ...

Detecting dead applications while server is alive in NLB

Windows NLB works great and removes computer from the cluster when the computer is dead. But what happens if the application dies but the server still works fine? How have you solved this issue? Thanks ...

Service.Controller Status / Polling

I'm having a problem with a administrative app I'm working on. I'm build an interface for stopping, starting and querying various services across 40 or so servers. I'm looking at service.controller and have been successful in stopping and starting various services with button events but now I'm trying to figure out a way to return th...

Sample web Page using Mono and XSP on windows box.

Hey, I'm attempting to get my first ASP.NET web page working on windows using Mono and the XSP web server. I'm following this chaps example. The first part of his example works very well with the latest version of mono. however the web part seems to fall over with the following error '{Path Name}\Index.aspx.cs' is not a valid vir...

How do I call a Windows shell command using VB6?

How exactly using VB6 can I can call any Windows shell command as you would from the command-line? For example, something as trivial as: echo foo ...