FG
💻 Software

How to pass an argument to a Windows Scheduled Task with spaces in it

Fresh5 days ago
Mar 15, 2026224022 views
Confidence Score0%
0%

Problem

I need to set up a Windows Scheduled Task. It accepts 1 parameter/argument which is a path and can contain spaces. My Scheduled task does not work - it "breaks" the parameter up at the first space. If I run it in the Command Prompt I can just wrap the argument in " " and it works fine, however, thi…

Error Output

C:\Program Files\xyz\FTP File Transfer\FTPFileTransferTask.exe "C:\Program Files\xyz\The Interface\Folder Path"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to pass an argument to a Windows Scheduled Task with spaces in it

Low Risk

Note the use of in the path of a file to be run.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment