Questions tagged "windows" (page No.1)

On Ubuntu and Xubuntu 12.04, files on a Windows 7 share are viewable, but copying is at 3-4 Kbyte / sec

I have a desktop with Win7, from where I share a bunch of files. Accessing these from my Xubuntu 12.04 netbook/mediacenter is incredibly slow - often no more than 3-4 Kbyte / sec (Not Kbit), and the transfer fails after some time. My immediate thought was the wi-fi, but I get ...

rackspace cloud windows server vpn connections between servers using RRAS

I have 2 soon to be 4 servers in rackspace cloud, they are windows 2008 64 bit r2 machines. I am trying to set up a private network with which I can VPN into. I have a proven working model of this currently but only if one of the servers ...

Logging out of an RDP session with some program other than explorer.exe as the shell?

How do you log out of an RDP session when they are using some program other than explorer.exe as the shell? Normally I use the start menu to log out of an RDP session, but in this case msaccess.exe is the shell so there is no start menu. ...

Windows 7 - Modify "advanced settings" tab of Device Manager from command line

I'm in a position where I need to enable Wake on LAN for roughly 50 machines. I don't want to have to go round every one and adjust the settings for it, but it's looking increasingly like I'll have to. The network cards have a setting in the "advanced" tab of ...

Save Files in User Directory or Not

What are the benefits of saving your files in your User Directory in Windows? I understand that if there are many people using the same machine, it'll create that NTFS separation and that is a great thing. But say you are the only user that is ever going to touch ...

Target field on Windows shortcut is disabled

A number of applications on my system have working desktop shortcuts which have the "Target" value disabled. This makes it impossible to modify. The value in the disabled textbox is the name of the application, not a path to the file I'm expecting to run. Is there a way to ...

difference between a command and an event in Composite Application Block

I'm using the Composite Application Block in my app. There are 2 concepts, EventHandlers and CommandHandlers which seem very similar to me... both allow you to invoke functionality in one part of the UI from another. What is the difference between them? ...

How to set nTackPos value for scrollbar

To to set nTrackPos value for the scrollbar, the SetScrollInfo function ignore it. ...

Version for openssl variable x509name in .net

Not sure if this can be solved by a different line of code or finding something which will properly update the initializer. Dim issuer As New OpenSSL.X509.X509Name("Issuer") Dim subject As New OpenSSL.X509.X509Name("Program") ...

Windows 8 Tab Control Styles in WPF

I'm trying to get Windows 8 (Metro UI) style tab controls in my application, similar to this. However, the code listed only seems to work in Silverlight. I'm using WPF. Is there any easy way to at least get similar styling? I can do without fancy transitions, but ...

Windows batch script to move lines from txt file to new file

I have a load of text files with some html code in them. EG: Some random text.... .. ... .... <tag1>some more random text</tag1> .... ... .. I need to run a script to go through each text file and move each line between the tags to a new text file in the same folder, and remove them from ...

How to make this rails method - windows compatible?

I've grabbed the latest code base of a gem called socialstream but I'm noticing an issue with file uploads on windows machines. The issue seems to be with the code below... # Monkey patches to Ruby on Rails # # Use unix file util to prove the content type sent by the ...

sleeping on an event

I have a multi threaded program in which I sleep in one thread(Thread A) unconditionally for infinite time. When an event happens in another thread (Thread B), it wake up Thread-A by signaling. Now I know there are multiple ways to do it. When my program runs in windows environment, ...

Get Brush from Color without SolidColorBrush

It looks like the SolidColorBrush requires .NET 3 or up, and I have a requirement to keep away from requiring manufacturing computers go through an upgrade. So, given a System.Drawing.Color color, how would I create a System.Drawing.Brush? public static Brush GetBrush(Color color) { Brush result ...

Global variable in C file that is acessed by multiple dlls

I am working with a C windows application that contains multiple DLLs. The first DLL defines a global variable that is used by multiple functions. The second dll has a method that calls a function within the first dll, which in turn accesses that global variable. When I access ...

printing to windows printer with python or shell command

I'm tryin to script an annoying task that involves fetching, handling and printing loads of scanned docs - jpeg or pdf. I don't succeed in accessing the printer from python or from windows shell (which I could script with python subproccess module). I succeeded in printing a text file from ...

How do I enable "Allow this device to wake the computer" programmatically?

On some computers, the network adapters are, by default, configured with the "allow this device to wake the computer" option turned off. As a result, Wake on LAN won't work. I need to turn this option back on, but I can't do it by hand - too many computers! ...

deploying IronPython script or static building an application

I created an IronPython script that imports from Python libraries, such as os, sys, etc. as well as .NET libraries. It runs perfectly fine from my Visual Studio IronPython solution but I need to deploy this so other people who don't have IronPython or Python installed can run it. How would I ...

forward winapi events to another window

What i have now: my app in C# is half-transparent, and does not catch winapi events - every click, drag etc is catch by underlaying window, which is separate app (like webbrower). I use this to overlay information on top of what browser shows. This is my code for ...

« Previous12345678910 ... 29342935Next »Show All