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
46
votes
3 answers

How to do a for loop in windows command line?

I was wondering if this was possible? I'm not familiar with using windows command line, but I have to use it for a project I'm working on. I have a a number of files, for which I need to perform a function for each. I'm used to working with python,…
TheFoxx
  • 1,583
  • 6
  • 21
  • 28
46
votes
4 answers

Convert a username to a SID string in C#/.NET

There's a question about converting from a SID to an account name; there isn't one for the other way around. How do you convert a username to a SID string, for example, to find out which HKEY_USERS subkey relates to a user of a given name?
crb
  • 8,132
  • 6
  • 37
  • 48
45
votes
7 answers

Is there a limit on number of open files in Windows

I'm opening lots of files with fopen() in VC++ but after a while it fails. Is there a limit to the number of files you can open simultaneously?
Jimmy J
  • 1,953
  • 1
  • 14
  • 20
45
votes
1 answer

How to remove a folder and all its content from the current directory?

This code that does not work: @echo off if exist output @set /p checkdir= Output directory found. Do you wish to overwrite it?: if /I %checkdir% == Y deltree /s /output pause
misctp asdas
  • 973
  • 4
  • 13
  • 35
45
votes
3 answers

Counting in a FOR loop using Windows Batch script

Can anyone explain this? I am able to count in a loop using the Windows command prompt, using this method: SET /A XCOUNT=0 :loop SET /A XCOUNT+=1 echo %XCOUNT% IF "%XCOUNT%" == "4" ( GOTO end ) ELSE ( GOTO loop ) :end But this method does not…
djangofan
  • 28,471
  • 61
  • 196
  • 289
45
votes
4 answers

After conda update, python kernel crashes when matplotlib is used

I have create this simple env with conda: conda create -n test python=3.8.5 pandas scipy numpy matplotlib seaborn jupyterlab The following code in jupyter lab crashes the kernel : import matplotlib.pyplot as plt plt.subplot() I don't face the…
jtobelem
  • 749
  • 2
  • 6
  • 23
45
votes
15 answers

file_exists() returns false, but the file DOES exist

I'm having a very weird issue with file_exists(). I'm using this function to check if 2 different files in the same folders do exist. I've double-checked, they BOTH do exist. echo $relative . $url['path'] . '/' . $path['filename'] . '.jpg'; Result:…
Bv202
  • 3,924
  • 13
  • 46
  • 80
45
votes
2 answers

Changing Shell Text Color (Windows)

I'm looking for a way to change the color of the text output from my python scripts as it runs. The basic idea is something like this: if (Data < LowerLimit): print "Failed" # Output Failed as Red Text elif (Data > UpperLimit): print…
CyanRook
  • 8,664
  • 4
  • 21
  • 20
45
votes
3 answers

What is the difference between BOOL and bool?

In VC++ we have the data type “BOOL” which can assume the value TRUE or FALSE, and we have the data type “bool”, which can assume the value true or false. What is the difference between them and when should each data type be used?
Umesha MS
  • 2,861
  • 8
  • 41
  • 60
45
votes
8 answers

Run Java application at Windows startup

I have a JAR file containing a Java application. How can I make it start with Windows, without needing user interaction?
shan
  • 493
  • 2
  • 5
  • 10
45
votes
6 answers

Why are "Executable files" operating system dependent?

I understand that each CPU/architecture has it's own instruction set, therefore a program(binary) written for a specific CPU cannot run on another. But what i don't really understand is why an executable file (binary like .exe for instance) cannot…
45
votes
14 answers

Kafka: unable to start Kafka - process can not access file 00000000000000000000.timeindex

Kafka enthusiast, need little help here. I am unable to start kafka because the file \00000000000000000000.timeindex is being used by another process. Below are the logs: [2017-08-09 22:49:22,811] FATAL [Kafka Server 0], Fatal error during…
a_a
  • 778
  • 1
  • 13
  • 16
45
votes
8 answers

How to print UTF-8 strings to std::cout on Windows?

I'm writing a cross-platform application in C++. All strings are UTF-8-encoded internally. Consider the following simplified code: #include #include int main() { std::string test = u8"Greek: αβγδ; German: Übergrößenträger"; …
Daniel Wolf
  • 12,855
  • 13
  • 54
  • 80
45
votes
6 answers

Python Message Box Without huge library dependency

Is there a messagebox class where I can just display a simple message box without a huge GUI library or any library upon program success or failure. (My script only does 1 thing). Also, I only need it to run on Windows.
Pwnna
  • 9,178
  • 21
  • 65
  • 91
45
votes
6 answers

Git push failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

I have just setup git with bit bucket for my windows machine. Git pull works properly, where as git push fails with below error. $ git push Counting objects: 10, done. Delta compression using up to 4 threads. Compressing objects: 100% (10/10),…
Inayathulla
  • 761
  • 2
  • 8
  • 21
1 2 3
99
100