Is there an easy way, preferably with a scripting language or a small tool that could be called through a batch file, to operate on a text file, mark an offset, and put everything after the offset into a new file?
I have a text file added to nightly, and I would like to make it so that the end of the file is marked, then after new data ...
When viewing the MSDN MAPI documentation page it says the API is now deprecated. If that's the case, what is the suggested API for sending mail these days?
http://msdn.microsoft.com/en-us/library/dd296734.aspx
Edit: Thanks for all the suggestions, the managed route isn't suitable for me as we're using MFC.
...
Is it possible to make a batch file which can make a persistent change to an environment variable?
For example my installer.bat script copies some files to a random location in the computer's file-system. I'd like to add that location to the PATH environment variable so that the programs can be run in the current session.
FYI - the st...
Following on from my previous question, is it possible to make a Python script which persistently changes a Windows environment variable?
Changes to os.environ do not persist once the python interpreter terminates. If I were scripting this on UNIX, I might do something like:
set foo=`myscript.py`
But alas, cmd.exe does not have anyt...
I am trying to write a simple function for windows that answers the following question.
Does user (U) have rights (R) on file (F)?
Where,
R is some combination of (GENERIC_READ, GENERIC_WRITE, GENERIC_EXECUTE)
U does not have to be logged in or impersonated
The code that I wrote is shown below. The application calls the fir...
I'm using NSIS to create an installer for a program, what is the best way to detect if this program is already installed? Also, since I'm running the installer from the autorun.inf, can I immediately quit the installer if it locates an installed copy? Is there a better way to do this?
...
I'm creating an installer with NSIS for a program that needs to run on an NTFS volume. How do I detect if the install to path is on an NTFS volume and act accordingly (show a help/warning message)?
...
I'm trying to make file I/O over a network drive (likely over a WAN or VPN) as reliable as possible for a native C++ Windows app...
What are the possible error conditions that I need to be able to handle?
How can I simulate these error conditions in testing?
How do I get detailed information on a particular error? For example, if fop...
I have a program that's already in C++ which needs to query some information from Exchange 2007. What little information exists in Active Directory (or the Cluster Database) seems to be incorrectly documented, and while there are hints that parts of the information are in the registry, not all of the information we need is available.
I ...
How to record wav sound from mic using Windows API?
...
Is there a way to get the user's email address from within Windows via Win32 or .NET? Is there a registry key or API that contains this information?
EDIT: I have an application that emails my company if our application fails and I wanted to get a return email address so that we could respond that individual that experienced the crash. ...
Sometimes I get this error message when trying to move, rename, or otherwise manipulate some files or folders on my computer...
What do I need to do to gain control?
...
I have to build a GUI application on Windows Mobile, and would like it to be able user to choose the language she wants, or application to choose the language automatically. I consider using multiple dlls containing just required resources.
1) What is the preferred (default?) way to get the application choose the proper resource languag...
I am using a service controller in a win forms application to start and stop a service which listens to a message queue and processes the messages. I get an access denied error when the service is started from the win forms application.I am using Vista Home Basic and an account which is of type administrator and I have used Log As - Loc...
I am developing some Python programs that I'm running on a remote Ubuntu Linux server (hosted on Slicehost). I would like to work on the source in an IDE on my Windows Vista PC, and have all file modifications sent directly to the Linux box without my intervention (i.e. without having to manually SFTP the files each time I change them). ...
Hi,
I have a web project developed in java. I am using the Windows platform and accessing the project from the Windows machine itself. How can I make the project run on a Linux machine? I am using jboss server and deploying the project.
Regards
...
When opening Remote Desktop to different Windows servers, it is easy to confuse two remote desktops.
How do I get each remote server to automatically display some system information as desktop wallpaper, ie. Computer Name, Operating System, IP Address, etc.
...
I'm pretty sure that a Windows service gets C:\winnt (or similar) as its working directory when installed using InstallUtil.exe. Is there any way I can access, or otherwise capture (at install time), the directory from which the service was originally installed? At the moment I'm manually entering that into the app.exe.config file, but...
I have a windows server which sends emails to me through a BASIC program. If the message body contains carriage returns/line feeds then the email never finishes. Only the first line is sent to me. I tried replacing them with \n but that didn't help as the email came to me with the \n in it. Any ideas?
Here is the command I'm using:
...
I have a WinForms application that our customer install locally and it is accessing our webservers through a leased/private network. All WS calls is getting routed properly when adressing our web server, but when the application is trying to access some other external resource (RSS) that is on the WWW - .Net/Windows is sending this reque...