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
352
votes
30 answers

Easier way to debug a Windows service

Is there an easier way to step through the code than to start the service through the Windows Service Control Manager and then attaching the debugger to the thread? It's kind of cumbersome and I'm wondering if there is a more straightforward…
Mats
  • 14,902
  • 33
  • 78
  • 110
351
votes
14 answers

Windows shell command to get the full path to the current directory?

Is there a Windows command line command that I can use to get the full path to the current working directory? Also, how can I store this path inside a variable used in a batch file?
user62958
  • 4,669
  • 5
  • 32
  • 35
350
votes
18 answers

Command line for looking at specific port

Is there a way to examine the status of a specific port from the Windows command line? I know I can use netstat to examine all ports but netstat is slow and looking at a specific port probably isn't.
user1580018
  • 3,509
  • 3
  • 14
  • 3
347
votes
11 answers

Is there replacement for cat on Windows

I need to join two binary files with a *.bat script on Windows. How can I achieve that?
Artem Tikhomirov
  • 21,497
  • 10
  • 48
  • 68
346
votes
26 answers

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs or use external programs. Well, actually I don't care…
flacs
  • 3,913
  • 4
  • 19
  • 20
342
votes
20 answers

How to grant permission to users for a directory using command line in Windows?

How can I grant permissions to a user on a directory (Read, Write, Modify) using the Windows command line?
Amitabh
  • 59,111
  • 42
  • 110
  • 159
342
votes
3 answers

How to get the system uptime in Windows?

I am using windows 7 and xp. I want to know the uptime of the system. What is the command / procedure for getting the uptime?
user1465825
340
votes
16 answers

Git symbolic links in Windows

Our developers use a mix of Windows and Unix-based OSes. Therefore, symbolic links created on Unix machines become a problem for Windows developers. In Windows (MSysGit), the symbolic link is converted to a text file with a path to the file it…
Ken Hirakawa
  • 7,831
  • 10
  • 38
  • 49
336
votes
14 answers

How do you run a Python script as a service in Windows?

I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
332
votes
12 answers

What languages are Windows, Mac OS X and Linux written in?

I was just wondering who knows what programming languages Windows, Mac OS X and Linux are made up from and what languages are used for each part of the OS (ie: Kernel, plug-in architecture, GUI components, etc). I assume that there are multiple…
Brock Woolf
  • 46,656
  • 50
  • 121
  • 144
331
votes
22 answers

How to run a makefile in Windows?

I have some demos that I downloaded and they come with a Makefile.win and a Makefile.sgi. How can I run these in Windows to compile the demos?
Kim
  • 3,321
  • 2
  • 16
  • 4
329
votes
12 answers

Modifying the "Path to executable" of a windows service

I'd like to modify the path to my application, but doing so breaks it because the service still points to the old location. By going to Administrative Tools > Services you can open a properties dialog and view the Path to executable, but there is…
GenericJon
  • 8,746
  • 4
  • 39
  • 50
327
votes
10 answers

Which comment style should I use in batch files?

I've been writing some batch files, and I ran into this user guide, which has been quite informative. One thing it showed me was that lines can be commented not just with REM, but also with ::. It says: Comments in batch code can be made by using a…
MikeFHay
  • 8,562
  • 4
  • 31
  • 52
325
votes
18 answers

How can you zip or unzip from the script using ONLY Windows' built-in capabilities?

In Windows you can zip some files by right click → Send to → Compressed (zipped) folder And unzip by double clicking on the .zip file and extract the files. Is there a way to apply those abilities from a script (.bat file) without the need to…
Roee Gavirel
  • 18,955
  • 12
  • 67
  • 94
323
votes
20 answers

Wildcards in a Windows hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local, site2.local etc, and have them all resolve…
EvilPuppetMaster
  • 8,072
  • 10
  • 34
  • 31