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
7 answers

fix to get smooth scrolling in emacs?

I find myself wanting to use Emacs, mostly because of org-mode, but I'm having a lot of trouble getting used to the jerky scrolling behavior. I know this is a well-known problem/eccentricity of Emacs and that there are various ways to minimize…
Herbert Sitz
  • 21,858
  • 9
  • 50
  • 54
46
votes
5 answers

Batch script to execute some commands in each sub-folder

I need to write a script to work in Windows, that when executed will run a command in some of sub-directories, but unfortunately I have never done anything in batch, and I don't know where to start. With the example structure of folders: \root …
Kacper
  • 726
  • 1
  • 6
  • 22
46
votes
10 answers

How to uninstall a windows service and delete its files without rebooting

My current project involves deploying an upgraded .exe file that runs as a Windows Service. In order to overwrite the existing .exe with the new version, I currently need to: Stop the service Uninstall the service Reboot the system (so Windows…
46
votes
7 answers

How to run a PHP file in a scheduled task (Windows Task Scheduler)

How can I create a scheduled task to run a PHP file? Yes, I filled out everything in the scheduled task, but it still doesn't work. Run: "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website\save.php" Start in: "C:\Program…
praveenjayapal
  • 37,683
  • 30
  • 72
  • 72
46
votes
3 answers

Schedule Python Script - Windows 7

I have a python script which I would like to run at regular intervals. I am running windows 7. What is the best way to accomplish this? Easiest way?
Btibert3
  • 38,798
  • 44
  • 129
  • 168
46
votes
5 answers

Change backslash to forward slash in windows batch file

I'm trying to convert all backslashes () to forward slashes (/) in a variable which contains a file name and location. I've read about this and seen: %variable:str1=str2% and set "var=%var:\=/%" which I've attempted, but I'm obviously not getting…
user3253319
  • 535
  • 1
  • 5
  • 8
46
votes
4 answers

Running powershell script within python script, how to make python print the powershell output while it is running

I am writing a python script which checks various conditions and runs a powershell script accordingly to help me automate migration from windows XP to windows 7. The powershell script gives its own output giving the user updates as to what is…
user3282276
  • 3,674
  • 8
  • 32
  • 48
46
votes
6 answers

What exactly is the Windows AppFabric?

Microsoft released a beta of Windows Server AppFabric that "makes it easier to build, scale and manage Web and composite applications that run on IIS". MS has also said that you can deploy AppFabric on your own servers, on a 3rd party host and on…
laktak
  • 57,064
  • 17
  • 134
  • 164
46
votes
6 answers

How to Manually create an Apache Windows Service

I accidentally removed my Apache windows service trying to install another Apache web server. Does anyone know how I can create another Apache windows service from cmd? I tried "sc create ..." but I am missing a script on the end like -k start? Not…
Jared
  • 521
  • 1
  • 6
  • 9
46
votes
1 answer

Using SC to install a windows service and then set recovery properties

I want to set the Recovery Options on a Windows Service I'm installing on a Windows Server 2003. I know this is possible to do manually, but I want to set the Recovery configuration when I install the service. I use SC script to do this: SC create…
user2110298
  • 567
  • 2
  • 5
  • 9
46
votes
4 answers

Changing case of Folder via Git bash on Windows

I need to change the case of folders and files. First thing I tried was renaming the folders, but Git didn't pick up the changes. So I tried using git mv -f controller Controller but it says : fatal: renaming 'application/classes/controller failed:…
xylar
  • 7,433
  • 17
  • 55
  • 100
46
votes
5 answers

Why this code says echo is off?

What is wrong with this code? It says ECHO is off. @ECHO off set /p pattern=Enter id: findstr %pattern% .\a.txt > result if %errorlevel%==0 ( set var2= test.txt echo %var1% ) else ( echo…
user1979801
  • 461
  • 1
  • 4
  • 3
46
votes
7 answers

What's the best way to do literate programming in Python on Windows?

I've been playing with various ways of doing literate programming in Python. I like noweb, but I have two main problems with it: first, it is hard to build on Windows, where I spend about half my development time; and second, it requires me to…
JasonFruit
  • 7,764
  • 5
  • 46
  • 61
46
votes
21 answers

How to stop Python closing immediately when executed in Microsoft Windows

I have just started college and we are going to be using python. We really have done nothing so I have downloaded the program and done some print commands, and that's it. When I run my .py file (a print command) it immediately closes after…
keirbtre
  • 1,431
  • 6
  • 15
  • 14
46
votes
2 answers

Forwarding all batch file parameters to inner command

For my comfort in Windows, I want to prepare some PHP tools launched like in Unix. f.e.: composer create-project symfony/framework-standard-edition path/ Not: php composer.phar create-project symfony/framework-standard-edition path/ I made…
Szopinski
  • 790
  • 1
  • 10
  • 18