windows

What do I need to run ASP.NET web applications on my personal machine for testing purposes?

I'm running Windows XP SP3 and I do have the latest .NET libraries installed, as well as Visual Studio 2008. I'm also running (and would like to continue to run) Apache HTTP Server as well, if that matters. Perhaps someone can provide a list of software that I need and then I can look up configuration or ask here if I can't find what I ...

What are some of the not-so-common issues with getting remote access to a SQL 2k8 instance?

Howdy... here on my local LAN, I have a Windows Server 2k8 box with SQL Server 2k8 installed. I can connect to the database engine using the SSMS tool on the server, but attempting to connect to the database engine from a remote machine (also on the same LAN), the connection fails with the usual generic message about not being able to c...

Remote desktop forced logoff

I use remote desktop quite a bit and I've noticed that on one of my machines when another user is already logged in it prompts them to allow me to log in, even for users with less privileges; however, with another computer, there is no prompt, it just proceeds with the remote logoff even for users with the same privileges. Both computers...

Connecting from Linux to Windows to perform a task

I've been asked to find a way to connect from a Linux system to one of several Windows servers. What we need to do ideally is connect to whatever Windows server is causing the trouble, kill a process, and restart the process. Ideally, it would be something that could be put into a script that could be run from the Linux computer. All ...

Securing Windows Service Applications

Is there any way to restrict users with administrative privileges from managing specific Windows service based applications? I would like to restrict administrators from stopping or re-starting my service very similar to the Windows event log service. What are some of the more popular approaches or recommended approaches to securing serv...

How to create a QWidget with a HWND as parent?

With wxWidgets I use the following code: HWND main_window = ... ... wxWindow *w = new wxWindow(); wxWindow *window = w->CreateWindowFromHWND(0, (WXHWND) main_window); How do I do the same thing in Qt? The HWND is the handle of the window I want as the parent window for the new QtWidget. ...

Free space in a CMD shell

Is there a way to get the amount of free diskspace of a disk or a folder in a CMD without having to install some thirdparty applications? I have a CMD that copies a big file to a given directory and could of course use the errorlevel return from the copy command, but then I have to wait for the time it takes to copy the file (eg...to th...

How to detect drag operation at windows global scope?

When I drag a folder at the edge of the screen in Windows XP, it become a toolbar, containing the files in the folder. How can windows detect there is a drag operation? If I want to write a application to detect drag operation in system scope, How can I do this? And another problem: how can I disable this windowsXP function, it is reall...

Where does the system store the icons position?

The "icon view" and "folder view" on any folder is in fact a SysListView. If you uncheck Auto-arrange of the icons you can move around the icons and next time you open the folder all icons are at the same place as last time. My question is, where does the system stores the x and y position of the icons? ...

Keyboard shortcut to move away from a full-screen remote desktop session

Using remote desktop in full-screen, what is the shortest way to move to another app? (Without using the mouse, of course. I hate mice). I currently use one of the following: ctrl-alt-del, alt-t (get to local machine's taskmgr), alt-tab (move to desired application), or: ctrl-alt-pause (toggle remote-desktop to a window), alt-tab. Is ...

Cross-application drag-and-drop in Delphi.

I would like to create a Delphi application for Windows XP which allows dropping of files dragged from Windows Explorer (the Desktop or folder windows) or other applications which support this operation (such as Total Commander). What about vice-versa? When the user drags an icon from my application, I should be able to set the contents ...

CommonAppData in vbscript

A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows Vista that is C:\ProgramData\AppName How do I get the correct foldername with VBScript? ...

how to run a php file in schedule task

Hi friends, how to run a php file in schedule task. Yes, i gave every thing in schedule task, but doesn't work. Run : "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website\save.php" start in : "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website" Its just open the php file in notepad. I...

Best free web framework to deploy on Windows Server?

If you are starting to develop a new web application from scratch and the only two requirements you have is that it will be deployed to Windows 2008 Server and that standard ASP.NET incl. VS2008 doesn't cut it (doesn't matter why, let's say it's the license cost, you won't be hosting Windows 2008 Server yourself). Which web framework wou...

Is the order in which handles are returned by EnumWindows meaningful?

From a couple of preliminary tests it seems that EnumWindows always returns windows in reverse instantiation order, i.e. most recently instantiated window first. Is that a valid observation? If so, is it true across all versions of Windows? And is this a reliable assumption, i.e. is that behaviour documented somewhere? Context: I'm de...

What's the Windows equivalent of a UNIX shell script?

I want to have an executable file that will call some other programs. The way I would do this in Linux is with a simple bash script that looks like this: #!/bin/bash echo "running some-program" /home/murat/some-program arg1 arg2 What's the best way to do this kind of thing under Windows? ...

Is there any advantage to using C++/CLI over either standard C++ or C#?

I'm not seeing any real advantages, other than the fact that you have a C++ syntax, and with it, things like pointers and destructors. ...

ms c++ get pid of current process

Part of my application is in C++ under windows. I need the process id for the current process. Any thoughts? ...

Reading a value from a file in a windows batch script

I'm trying to read a value from a file and use it in a subsequent command. I have a file called AppServer.pid which contains the process id of my app server (just the number, it's not a properties file or anything like that). The app server is hanging, so I want to take this value and pass it to the kill command. So my script will be s...

Windows Xp or Vista: How can I run a batch file in the background (no windows displayed) ?

I know I have already answered a similar question (Running Batch File in background when windows boots up), but this time I need to launch a batch: from another batch without any DOS windows displayed with all arguments passed to the invisible batch The first batch is executed in a DOS windows. However, I do not want the second batch...