windows

Improving java file i/o performance when using a mapped network drive on Windows

We've created a java application that (among other things) uses the built-in file IO libraries to access a list of files inside a particular folder on a network share. When the folder is specified as a local file (e.g., c:\foobar), performance is fine. However, if we map a network drive to the folder, even if the folder is on the same ...

CreateFile not returning a proper Handle - devices in Delphi

Hoping to find somebody that has experience with services in windows. I am trying to use the NdisProt driver for ethernet adapters in Delphi my_Handle := CreateFile(PChar('\\.\NdisProt'), GENERIC_WRITE or GENERIC_READ, 0, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); (have tried with \\.\\NdisProt too) After execution my_H...

VBScript current directory + sub directory?

I am trying to get the path of a file that is within a sub-directory of the current directory in VBScript. The following does not seem to work? currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName))) FileToCopy = currentDirectory & "\test\user.js" Here is the entire code: Set oFSO = Cre...

php/mysql: development on Win, deployment on Linux

A possibly "silly" question. Would I possibly run into any problems (incompatibilities) deploying eg.: on Centos/Apache (php5/MySQL5) a project developed on Win desktop (WAMP/XAMPP - php5/MySQL5). I found some answer: here on Stack. But it does not address all my concerns. If I missed any thread - I appreciate a link. ...

after kill application and start , it runs in background

Hi i wrote simple script as .bat file, and if i run this using windows scheduler , it kill the application and restart , but after that application runs in background as a proces, what shoud i do to see it in my screen? taskkill /F /IM program7.exe start D:\AIMR\CS\program.exe ...

Is there any free portable (meaning <100mb ) IDE for C++ windows developers with compiler capable of codehinting and tested working with Win32 API?

What I need is a small sized IDE+compiler for creating C++ applications that will interact with win32APIs... And It'd be grat for it to be capable of analizing headers I give it for code completion and connecting DLL's (not .Net DLLs but If it'd be capable ofcompiling C++ .NET projects I would just be super-duper glad) to project should ...

Is EC2 really not competitive against a VPS?

I started out with Amazon EC2 as a monthly host for my project. I am running a 'small' Windows 2k8 instance with SQL server. This is the HW that I am getting: 1.7 GB memory 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) [2.7 GHz CPU] 160 GB instance storage 32-bit platform I/O Performance: Moderate Now I tend to see peop...

How do I write a UTF-8 encoded string to a file in windows, in C++

Hello all, I have a string that may or may not have unicode characters in it, I am trying to write that to a file on windows. Below I have posted a sample bit of code, my problem is that when I fopen and read the values back out windows, they are all being interpreted as UTF-16 characters. char* x = "Fool"; FILE* outFile = fopen( "Se...

Loop through values or registry key.. _winreg Python

How would I loop through all the values of a Windows Registry Key using the Python module _winreg. I have code that will do what I want, but it is for the subkeys of the specified registry key. Here Is The Code: from _winreg import * t = OpenKey(HKEY_CURRENT_USER, r"PATH TO KEY", 0, KEY_ALL_ACCESS) try: i = 0 while True: ...

How to find out if a socket is already in Non-Blocking mode in Windows?

Is there a way to find out if a socket is already in Non-Blocking mode in Windows? I know this can be done in case of Linux, but, I am unable to find any way for this Windows. All my coding is in 'C' language. Is there a way? ...

command prompt window

I am trying to use multiple parameters to find 3 different extensions in my windows/system32 in one command: exe, dll and sys dir c:\windows\system32*.dll/p i had this correct but can't get all 3 ...

Widgets disappear after tkMessageBox in Tkinter.

Every time I use this code in my applications: tkMessageBox.showinfo("Test", "Info goes here!") a message box pops up (like it is supposed to), but after I click OK, the box disappears along with most of the other widgets on the window. How do I prevent the other widgets from disappearing? Here Is My Code: from Tkinter import * im...

How can I convert SQLite 2 to SQLite3 using Python on Windows?

I'm trying to convert a SQLite 2 file to SQLite3 using Python on Windows. On Linux, I'd just pipe a dump from sqlite to sqlite3: os.system("sqlite db.sqlite .dump | sqlite3 db3.sqlite") On Windows, I have no such convenient means of transferring the dump. Here's what I'm doing: sqlite_dump = os.popen('sqlite %s .dump' % sqlite_db)....

How to Disable Dynamic Frequency Scaling?

Hi, I would like to do some microbenchmarks, and try to do them right. Unfortunately dynamic frequency scaling makes benchmarking highly unreliable. Is there a way to programmatically (C++, Windows) find out if dynamic frequency scaling is enabled? If, can this be disabled in a program? Ive tried to just use a warmup phase that uses 10...

Display word custom document property on screentip

On your Windows machine if you just hover your mouse over any Microsoft Office Word 2007/2010 document you get a screentip which generally contains metadata information such as Type,Authors, Size and DateModified. These metadata are the builtin document properties of any word document. I'm wondering if there is any (VSTO/other/hacked)wa...

Create .zip folder from the command line - (Windows)

Hi, is it possible to create a .zip file from a folder in the command line, I don't want to use any third party executable. I was thinking somenthing like 'send to compressed folder' but I don t know how to do it Thanks ...

Block USB, based on Volume/Capacity

Hello, I want to block a USB based on volume using C#. Like I want to block USB stick if capacity is greater than 8GB. Look there is a method to block USB on PC using registry. but this will make USB undetectable so I can not get volume information. I want to do that If my client program is running on some machine and I put restriction...

Moss 2007 on windows 7 installation compatibility

Hi I know this question shoukd not be here . i tried this on the serverfault but not responded...! an yways my issue is : I have the machine with installed the Windows 7 Enterprise N edition. I have installed the sql server 2008 also there . so can i install MOSS 2007 on such connfiguration? if not what should i do. i tried to install b...

Key pressed on form

Hi! I have an windows forms application, with a form that holds 2 tabcontrols and a grid. I'd like to catch the pressing of esc key on any on this controls. The question is : is it a simpler way to do that without subscribing to the keypress event on each control ? Thanks! ...

Retrieve a user's First and Last Name, given its login name, inside a windows server domain.

Hi Given that I am on a workstation, that is inside a Windows Server domain. In my data, I have the login name of the operator who has created the data. When I print a presentation of this data, I want to display the first and last name of this operator, which may be logged on another workstation of the domain... or even could even not...