At my company, we are writing a script to take care of simple tasks that we usually would do by hand. I am using c# to delete profiles in c:\documents and settings\, except a few. These will simply be left alone. The problem is that even with code that sets the files to normal and marks the admin user as an owner, they won't delete. They...
I have programmed some launcher for a game, so you can actually start the game and make it automaticly do various things with just one click from the browser. To make it easier for people to make their own custom links, I've tried to build something where they can create the links with just a few buttons.
It works like this: The protoco...
I'm installing a desktop shortcut (to a batch file) from a WiX-based installer -- how do I automatically configure this shortcut with the "Run as Administrator" setting enabled? The target OS is Windows Server 2008 R2, and the installer is running with elevated priveleges.
Update:
Thanks to the link provided by @Anders, I was able to ge...
Say I have a visual studio project that builds a windows exe or dll from c++ source.
The project statically links to several library (.lib) files.
I would like to generate the subset of the available functionality in a particular .lib that the project actually links to.
A very crude way to achieve this would be to remove the .lib from...
I use the windows Multimedia API to create .wav files.
1. Open file with mmsioOpen
2. Creates WAVE,frm and data chunks using mmioCreateChunk
3. Write audio data using mmioWrite
4. Ascend out of the chunks using mmioAscend
5. Close file using mmioClose
The file is being written into a temporary location, so after it has been closed it ge...
I am wondering if someone could point me in the right direction. You know how for example, in most IDEs, if you open a source file with "open with", it runs the program and opens it up? and then if you open another one, it opens it in a new tab in the same process?
My question is NOT how to add a program to the shell commands, but rathe...
I have a master-workers architecture where the number of workers is growing on a weekly basis. I can no longer be expected to ssh or remote console into each machine to kill the worker, do a source control sync, and restart. I would like to be able to have the master place a message out on the network that tells each machine to sync an...
I am trying to dial a phone number from php (i have a client list in a database, and thought i could use it to ring them when i click on their name
here is my code, it doesn't seem to work. I can hear the phone line click, but it doesn't seem to dial. maybe i am missing some command that needs to be sent prior to atdt?
$device = "COM4"...
Hi,
I want to write the utility which will be scheduled task, and will take the list of computer names on domain. After a particular time which will be set in the utility machines with that name get shutdown.
Please share your thoughts on this...
Thanks.
Anjan
...
I'm totally new to flex.
I'm getting a build error when using flex. That is, I've generated a .c file using flex, and, when running it, am getting this error:
1>lextest.obj : error LNK2001: unresolved external symbol "int __cdecl isatty(int)" (?isatty@@YAHH@Z)
1>C:\...\lextest.exe : fatal error LNK1120: 1 unresolved externals
here i...
As in the topic... or better - how to get this information from events when the top window changes?
...
I'm running a command line programme as administrator,
but I found that PATH in System variable has higher precedence than in Administrator variable .
Is that true,can someone give some documents on this?
...
Debugging with visual studio 2005 The following Error Displayed :Unhandled exception at 0x00000000 in procexp.exe: 0xC0000005: Access violation reading location 0x00000000.
And Thread Information:
2704 Win32 Thread 00000000 Normal 0
extern "C" VDLL2_API BOOL WINAPI MyTerminateProcess(HANDLE hProcess,UINT uExitCode)...
While writing some recent scripts in cmd.exe, I had a need to use findstr with regular expressions - customer required standard cmd.exe commands (no GnuWin32 nor Cygwin nor VBS nor Powershell).
I just wanted to know if a variable contained any upper-case characters and attempted to use:
> set myvar=abc
> echo %myvar%|findstr /r "[A-Z]"...
Hi,
We're a small team and we're running subversion and apache on the same server.
We're currently facing a small problem: everyone saves their edits of our web application directly to the server, which means countless errors when we all work on the same class.
Now we're trying to solve this by letting the server use the files in subv...
Hi People,
I run a license server in linux and a process in Windows to check out tokens from it. It does a tcp socket connection to server to communicate and once the process in Windows is closed, the tokens are checked in back to server. But I see sometime the connection show as established in netstat output even when process in Window...
I am calling a third party API which creates a socket, does a connect and then calls select API by passing the socket to block forever.
I don't have access to the socket. Is there some way in which I can make the select call come out from my application without having access to the socket?
My platform is Windows.
...
Hello,
I would like to export the Bash Shell Automation Script Project to a GUI Project which can run in both Windows and Linux.
Which Programming Language would be better suited for this ? Any suggestion would be really helpful.
Thanks
Kiran
...
I have a desktop .NET WPF application witch uses an embedded database (SQLite).
Where to put the database file ? It's the same database for all users.
I tried to use CommonAppData but it's not writable by non-admin users. So I tried to use a custom installer action to give write rights to all users to this folder but it fails on domain ...
I want to identify disk in c++ in my windows application.
For example:
I have a disk on E:\
Then I changed the disk, and replace it with another one. the name is still E:\
How can I know the disk is changed, it is not the original one?
If I have no administrator priority in win7, Can I still use some method to identy different disks?
...