windows

PowerShell script packaging and WinNT execution?

Is there any free software to package a powershell script into a standalone WIN32 executable? It seems it was possible to get the powershell beta's to run on win2000 and winNT, is there any known way to get the final powershell to run on it? ...

How does Vista generate the icon for documents associated to my application?

Can I affect the process? I have an application built in .NET 3.5 / VS2008. I have embedded multiple icons into the app with a win32 .res file. This is done in the Properties box for the Project in VS2008 - instead of specifying an .ico file, tick the box to specify a .res file. In the .res file you can have multiple icons. See here ...

Python windows File Version attribute

Hi, Last time I asked a similar question but that was about svn related versioning info. Now I am wondering how to query windows "File version" attribute about eg. a dll. I payed attention to wmi and win32file modules as well without success. Thanks U in advance. D. ...

what is a good c compiler

i'm using windows xp what would be a good c compiler? i want to learn c so that i can better understand the objective-c language for the iphone. i have a great background in php so hopefully something will make sense ps: what sections should i put more focus on when learning c in getting prepared for objective-c? thanks Duplicate: ...

Find out who is locking a file on a network share

I want to known who is locking a file on a network share. Here is the problem : the network share is on a NAS, so I can't log on. I need a tool to find out remotely who is locking the file. It is not practical to reboot the NAS every time, because there are several users. Handle.exe, Process Explorer and PsFile seems to be limited to f...

How do patches and service packs work?

How do patches or service packs work? I don't know how to explain my question but I will give a try Take Windows for example. It has files which altogether consume 100s of MB. Now a single service pack (may be 300 MB file) updates the whole windows OS. Similarly I have seen updates happening for softwares like adobe reader etc. In all ...

Joomla 1.5: why does trying to send email result in: PHPMAILER_RECIPIENTS_FAILED

Hi, I'm trying to send emails from Joomla! 1.5.9, but keep getting this error message: PHPMAILER_RECIPIENTS_FAILED*recipient_name*<*recipient_email*> A few more facts: It's a WAMP server (joomla 1.5.9, PHP 5.2.8) Validation emails are sent with no problem at all Joomla! is set to use SMTP The IIS SMTP service is used (though I'm not ...

What's the difference between %TMP% and %TEMP% in Vista environment variables?

On my computer, both points to the same location. Are those for backward compatibility issues only, or is there a real difference? ...

IIS6 on Windows 2003 Enterprise Edition x32 and Memory

Hi, I have ASP.NET 2.0 applications running on 32 bit Windows 2K3 Standard edition with 4GB of RAM. I want to upgrade the server to Enterprise edition and add more memory to a total of 6GB. I assume that I will need to enable PAE extensions to do this. How much of this extra 2GB will be usable to the W3WP worker processes? The root iss...

How do I programatically change the create, modify, access date on a file?

I need to change the modify date on a file in windows so that it doesn't clutter up my sort order. How can I do that with a script (I may need to do that to the file in the future as well)? thanks. BTW: I don't want to have to install apps to do this. ...

Can you explain why DirectoryInfo.GetFiles produces this IOException?

I have a WinForms client-server app running on a Novell network that produces the following error when connecting to the lone Windows 2003 Server on the network: TYPE: System.IO.IOException MSG: Logon failure: unknown user name or bad password. SOURCE: mscorlib SITE: WinIOError at System.IO.__Error.WinIOError(Int32 errorCode, String...

How to use Java timezone id in a Windows (non-Java) application?

I need to add timezone information to a db table with user maintained locations. The data will be accessed mostly from Java code but there is also some PL/SQL and Win32 (Delphi) code which needs to understand the timezone information. It seems straight forward to use the id from java.util.TimeZone. Java can easily convert that (obviousl...

Recommended .NET app installer?

I need to create an install for my app that executes the following actions: Copies files Writes registry settings Registers a windows service Writes an XML app.config file (based on user supplied info during install--a connection string) Executes SQL scripts against a remote database (connection info obtained in #4) Installs and regist...

How can I detect when an SD card is plugged in?

I'm writing a PC application in C++ that needs to detect when a user connects an SD card to his/her computer. I know how to detect when the card reader is connected, but I do not know how to detect when individual cards are connected/removed. Does Windows have an IO interface to detect arrival/removal of SD cards? [Update] the WM_DEVIC...

Windows cygwin equivalent of Mac OS X open command

I realize this is almost identical to http://stackoverflow.com/questions/501290/windows-equivalent-of-the-mac-os-x-open-command and http://stackoverflow.com/questions/264395/linux-equivalent-of-the-mac-os-x-open-command, but I'm asking specifically about a command I can run in the Cygwin shell to use the current Windows UI application bo...

MulticastSocket not responding after failure

I get a SocketException when trying to call joinGroup(addr) on MulticastSocket. This is only happening on a Windows machine that we have setup to auto start our appliction when the machine is booted up. It seems like the exception is thrown because Windows has not completely finished its startup process and here is the exception. java...

wput on Windows ignoring --skip-existing

Hello, Hopefully someone familiar with wget & wput on windows knows about this... wput -v --remove-source-files --skip-existing --dont-continue %stfile% ftp://%ftpuser%:%ftppass%@%ftpserver%/inbound/%stfile% basically this should not try to ftp the file if it already exists on the ftp site... however the file does not exist-- and ...

Need to create a custom wizard control.

I have been asked to build a custom wizard control in VB.NET for a windows forms project. It has been made very clear to me that I am not "allowed" to utilize existing wizard controls on the internet due to some obscure logic surrounding copyrights. It has also been made clear to me that we are not "allowed" to use usercontrols in the ...

How to keep the windows install dialog from popping up in .NET?

When a user installs my application how do I keep User Account Control from producing this dialog? And no I don't want to tell them to disable UAC. ...

Truncate file

I am using fopen fseeko64 ftello64 fclose etc. to operating on a file. How can I truncate a file? I know that there is no standard way to do this in C. All I want is some way that will work on any win32 platform. I'm using mingw gcc to compile. Please note: I meant truncate the size of the file to a specified size, not make it 0 size. ...