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
476
votes
11 answers

Why does the 260 character path length limit exist in Windows?

I have come up against this problem a few times at inopportune moments: Trying to work on open source Java projects with deep paths Storing deep Fitnesse wiki trees in source control An error trying to use Bazaar to import my source control…
Jeffrey Cameron
  • 9,975
  • 10
  • 45
  • 77
473
votes
15 answers

How do I get the current username in Windows PowerShell?

How do I get the current username in Windows PowerShell?
Thomas Bratt
  • 48,038
  • 36
  • 121
  • 139
472
votes
31 answers

TortoiseSVN icons not showing up under Windows 7

I can't seem to get the icons to display under Windows 7 and I really miss this from Windows XP. How can it be fixed?
Lodle
  • 31,277
  • 19
  • 64
  • 91
468
votes
17 answers

How do I manually create a file with a . (dot) prefix in Windows? For example, .htaccess

I want to create a .htaccess file manually and discovered it seems impossible through the Windows UI. I get a "you must type a filename." message. There has to be a way to create files with . as a prefix in Windows. Can this be done manually?
Doug Chamberlain
  • 11,192
  • 9
  • 51
  • 91
466
votes
23 answers

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer >…
darren
  • 18,845
  • 17
  • 60
  • 79
459
votes
12 answers

Create Windows service from executable

Is there any quick way to, given an executable file, create a Windows service that, when started, launches it?
German Latorre
  • 10,058
  • 14
  • 48
  • 59
456
votes
15 answers

Unix tail equivalent command in Windows Powershell

I have to look at the last few lines of a large file (typical size is 500MB-2GB). I am looking for a equivalent of Unix command tail for Windows Powershell. A few alternatives available on are, http://tailforwin32.sourceforge.net/ and Get-Content…
mutelogan
  • 6,477
  • 6
  • 20
  • 15
453
votes
9 answers

How to completely remove node.js from Windows

I uninstalled my previous version of node.js (0.8.11) and downloaded the latest, 0.10.24 from the node.js website and installed it. However, after running node --version, it still indicates that I'm running v0.8.11. Obviously, some stuff was left…
Andrew De Forest
  • 6,829
  • 14
  • 39
  • 50
450
votes
24 answers

Permanently add a directory to PYTHONPATH?

Whenever I use sys.path.append, the new directory will be added. However, once I close python, the list will revert to the previous (default?) values. How do I permanently add a directory to PYTHONPATH?
John Howard
  • 61,037
  • 23
  • 50
  • 66
447
votes
21 answers

How to recursively delete an entire directory with PowerShell 2.0?

What is the simplest way to forcefully delete a directory and all its subdirectories in PowerShell? I am using PowerShell V2 in Windows 7. I have learned from several sources that the most obvious command, Remove-Item $targetDir -Recurse -Force,…
Matt Spradley
  • 7,854
  • 9
  • 31
  • 40
442
votes
11 answers

Reminder - \r\n or \n\r?

I just can't remember those. So, what is the right way to properly terminate old fashioned ASCII lines?
Daniel Mošmondor
  • 19,718
  • 12
  • 58
  • 99
442
votes
23 answers

Run cURL commands from Windows console

Is there a way to install cURL in Windows in order to run cURL commands from the command prompt?
DomingoSL
  • 14,920
  • 24
  • 99
  • 173
440
votes
17 answers

Iterate all files in a directory using a 'for' loop

How can I iterate over each file in a directory using a for loop? And how could I tell if a certain entry is a directory or if it's just a file?
Vhaerun
  • 12,806
  • 16
  • 39
  • 38
439
votes
1 answer

The difference between the 'Local System' account and the 'Network Service' account?

I have written a Windows service that spawns a separate process. This process creates a COM object. If the service runs under the 'Local System' account everything works fine, but if the service runs under the 'Network Service' account, the external…
jmatthias
  • 7,375
  • 7
  • 27
  • 36
439
votes
23 answers

How to convert DOS/Windows newline (CRLF) to Unix newline (LF)

How can I programmatically (not using vi) convert DOS/Windows newlines to Unix newlines? The dos2unix and unix2dos commands are not available on certain systems. How can I emulate them with commands such as sed, awk, and tr?
Koran Molovik
  • 4,415
  • 3
  • 16
  • 3