Questions tagged [windows]

Writing software specific to the Microsoft Windows operating system: APIs, behaviours, etc. GENERAL WINDOWS SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com

General support questions for Windows should be asked on Super User

Windows is a family of graphical operating systems developed by Microsoft for server, client, and mobile platforms.

Recent Versions

  • Windows 10 was released on July 29, 2015.

  • Windows 8.1, the first significant update to Windows 8, was released on October 17, 2013.

  • Windows 8, the successor to Windows 7, was released to the market on October 26, 2012. It was designed to be used on both tablets and conventional PCs.

Specific Version Tags

If your question relates to using Windows APIs or Windows-specific behavior with a particular version of Windows, use the tag for that particular version – for example:

Other Related Tags

Resources

166791 questions
297
votes
15 answers

What is the Windows version of cron?

A Google search turned up software that performs the same functions as cron, but nothing built into Windows. I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone. Is there also a way to…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
295
votes
31 answers

How to detect Windows 64-bit platform with .NET?

In a .NET 2.0 C# application I use the following code to detect the operating system platform: string os_platform = System.Environment.OSVersion.Platform.ToString(); This returns "Win32NT". The problem is that it returns "Win32NT" even when running…
Marc
  • 9,012
  • 13
  • 57
  • 72
293
votes
18 answers

What is the proper way to test if a parameter is empty in a batch file?

I need to test if a variable is set or not. I've tried several techniques but they seem to fail whenever %1 is surrounded by quotes such as the case when %1 is "c:\some path with spaces". IF NOT %1 GOTO MyLabel // This is invalid syntax IF "%1" ==…
blak3r
  • 16,066
  • 16
  • 78
  • 98
291
votes
12 answers

How do you loop through each line in a text file using a windows batch file?

I would like to know how to loop through each line in a text file using a Windows batch file and process each line of text in succession.
Mr. Kraus
  • 7,885
  • 5
  • 28
  • 33
290
votes
24 answers

Quickly create large file on a Windows system

In the same vein as Quickly create a large file on a Linux system, I'd like to quickly create a large file on a Windows system. By large I'm thinking 5 GB. The content doesn't matter. A built-in command or short batch file would be preferable, but…
Leigh Riffel
  • 6,381
  • 3
  • 34
  • 47
289
votes
10 answers

RuntimeError on windows trying python multiprocessing

I am trying my very first formal python program using Threading and Multiprocessing on a windows machine. I am unable to launch the processes though, with python giving the following message. The thing is, I am not launching my threads in the main…
NG Algo
  • 3,570
  • 2
  • 18
  • 27
288
votes
28 answers

What are good grep tools for Windows?

Any recommendations on grep tools for Windows? Ideally ones that could leverage 64-bit OS. I'm aware of Cygwin, of course, and have also found PowerGREP, but I'm wondering if there are any hidden gems out there?
Portman
  • 31,785
  • 25
  • 82
  • 101
286
votes
20 answers

Windows batch: echo without new line

What is the Windows batch equivalent of the Linux shell command echo -n which suppresses the newline at the end of the output? The idea is to write on the same line inside a loop.
gregseth
  • 12,952
  • 15
  • 63
  • 96
283
votes
5 answers

How can I test a Windows DLL file to determine if it is 32 bit or 64 bit?

I'd like to write a test script or program that asserts that all DLL files in a given directory are of a particular build type. I would use this as a sanity check at the end of a build process on an SDK to make sure that the 64-bit version hasn't…
morechilli
  • 9,827
  • 7
  • 33
  • 54
280
votes
25 answers

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

I'm trying to install PhoneGap and I'm getting the following error: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions. Error (screenshot) What do I do to ensure Android is set…
rrvasanth
  • 2,831
  • 3
  • 15
  • 9
280
votes
14 answers

Windows 7, 64 bit, DLL problems

I have a problem with our executable. I'm running this C++ 32-bit executable on my Windows 7 64-bit development box that also has all those Microsoft applications (Visual Studio 2008 + 2010, TFS, SDK, Microsoft Office)... And it's still running just…
tlvs
  • 2,835
  • 2
  • 13
  • 7
277
votes
9 answers

Signing a Windows EXE file

I have an EXE file that I should like to sign so that Windows will not warn the end user about an application from an "unknown publisher". I am not a Windows developer. The application in question is a screensaver generated from an application that…
Lasar
  • 5,175
  • 4
  • 24
  • 22
276
votes
7 answers

How to write a multiline command?

How do we extend a command to the next line? Basically what's the Windows alternative for Linux's: ls -l \ /usr/ Here we use backslashes to extend the command onto the next lines. What's the equivalent for Windows?
Jigar
  • 8,762
  • 6
  • 25
  • 26
274
votes
6 answers

Command to list all files in a folder as well as sub-folders in windows

I tried searching for a command that could list all the file in a directory as well as subfolders using a command prompt command. I have read the help for "dir" command but coudn't find what I was looking for. Please help me what command could get…
user1760178
  • 6,277
  • 5
  • 27
  • 57
271
votes
29 answers

How do I copy a string to the clipboard?

I'm trying to make a basic Windows application that builds a string out of user input and then adds it to the clipboard. How do I copy a string to the clipboard using Python?
tester
  • 22,441
  • 25
  • 88
  • 128