Questions tagged [windows-task-scheduler]

Use for questions about programmatic modification of task scheduling on any version of the Windows OS.

The MS Windows system scheduler component manages the execution time (time slices) that competing processes & threads are given on available processor cores.

Tag usage

The task is for questions about programmatic modification of task scheduling on any version of the Windows OS. You should also tag questions with their specific Windows version, where relevant.

Related tags

References

Microsoft documentation is the primary source for documentation about Windows Scheduling. You may refer the following topics for more information:

845 questions
0
votes
1 answer

Win 7 Task Scheduler Interactive Mode

I would like to run a scheduled bat file every day on Win7 machines. The file needs to launch IE interactively and crawl a list of web pages to generate web traffic. I could achieve this with wget and it will generate the traffic, but I need IE to…
Thurst
  • 47
  • 5
0
votes
1 answer

powershell 2.0 import task from win server 2003 schtasks /query /fo csv

I need to export the task list from a windows 2003 server to 2008. I used schtasks /query /fo csv to export the tasks into a csv file from the 2003 host. Now I need to find out how to import the tasks to the 2008 server. I found a couple of posts…
Bluz
  • 5,980
  • 11
  • 32
  • 40
0
votes
1 answer

How do I use user input in Task Scheduler program?

I'm creating a program that takes input on the tasks name, the file that it executes, and when. I found sample code from Microsoft here: http://msdn.microsoft.com/en-us/library/aa384042%28v=vs.85%29 and I'm using it. I don't know how to use user…
0
votes
2 answers

How do I set the location(start-in) of a python script in Task Scheduler in command line?

It appears to be '\' at the Task Sceduler GUI. and I used the command and I want the script to open files in the same path without using absolute path. I scheduled the task using the command: schtasks /Create /SC HOURLY /TN PythonTask /TR…
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
-1
votes
2 answers

python exe runs fine manually, but in windows task scheduler it start and then it crashes

I created an exe with auto-py-to-exe (onefile). the exe works fine, but when I want to run this automatically in windows task manager the exe does start, but throw out an error on the location of my file. data.json data.json file is in the same…
Dimyvm
  • 1
-1
votes
1 answer

Saving python files from VSCode - saving as source file

I currently have a large chunk of python code that was written in VScode and saved as a .py file. When I go to my windows file explorer and look at where it was saved, it says it saved as a 'windows source file' rather than a 'python file' I am…
user17582908
-1
votes
1 answer

Copying python script from GitHub to Azure virtual machine

In the Azure virtual machine, I'm running a Python script (xyz.py) through the Windows task scheduler. Every time a developer commits a new change to the file, it needs to be deployed automatically. In order for the task scheduler to pick a newer…
SKARVA Bodavula
  • 903
  • 11
  • 17
-1
votes
1 answer

System.IO.IOException: Cannot create a file when that file already exists. Even after deleting the existing file

Using .NET Core 3.1 and C#, I'm trying to move a directory (including all subdirectories and files) to another directory. The destination directory may contain folders and files that already exist with the same name as the source directory, for…
Darren
  • 73
  • 1
  • 1
  • 11
-1
votes
1 answer

Create a task with task Scheduler to run cmd.exe with commands

I created a task with the task scheduler in windows 10 to open cmd.exe. it ran successfully like this But I need to run some commands every time it opens something like this and automatically runs this command. this is important that it opens a…
Asim Imam
  • 313
  • 1
  • 3
  • 12
-1
votes
1 answer

Got an ERROR: Invalid argument/option - '>' when I was trying to export information in task scheduler to a csv file

I wanna export all information in Windows Task Scheduler using Python, so I wrote the code as follows: Import subprocess subprocess.call(r'schtasks.exe / query / FO CSV > D:\tasks.csv /V') Then I got ERROR: Invalid argument/option - '>' But when I…
-1
votes
1 answer

VBA macro fails to send outlook mail when' user is logged on or not' in task scheduler

interaction with excel is working but not working with outlook I am able to schedule the below task in the task scheduler in " user is logged on or not" mode and it is working fine. (running from VBS file) Sub runTaskTest() Dim erow As Long …
Karthick Anbazhagan
  • 353
  • 2
  • 9
  • 27
-1
votes
1 answer

Background loading Excel using task manager to load data and upload to salesforce

I have no knowledge on computer programming and I need a bit of help. I'm using automate.io (a drag and drop integration software) to take a new row in excel and insert it into salesforce. That bit works all ok. What I worry about is my excel…
-1
votes
1 answer

R file not running as .bat file

I have created a script that I can run in R Studio without issue. I then created a .bat file to run the script which uses this code: @echo on "C:\R\R-4.0.4\bin\x64\R.exe" CMD BATCH C:\Documents\RScript.R I have used this exact syntax to run R…
MOliver
  • 87
  • 6
-1
votes
1 answer

how to schedule a python script

I want to Schedule a python script. I need help in ACTIONS tab: Here I have provided the below I'm unable to run the task. Please assist.
saraa
  • 17
  • 4
-1
votes
1 answer

Python script not running in Windows Task Scheduler

I have a simple python script that when I run it via command line it'll run. I also created a batch file to run the python script as well. When I double click that it'll run just fine. I can't get either the python script or the batch file…
datadude
  • 11
  • 3