n8n - 💡(How to fix) Fix Execute Command, Write File nodes on Windows local install do not interpret JavaScript well

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Describe the problem/error/question

What is the error message (if any)?

No error, just wrong behavior or setup missing

  • error: all

Code Example

{
  "nodes": [
    {
      "parameters": {
        "command": "=C:\\_SOLU\\INSTALL\\TOOL\\pdfsign\\pdfsign -i C:\\_SOLU\\IN_OUT\\TSA-DWC-IN\\toto.pdf -o \"C:\\_SOLU\\IN_OUT\\TSA-DWC-OUT\\{{ $json.name }}.pdf\" --tsa=http://tsa.swisssign.net >> C:\\_SOLU\\IN_OUT\\TSA-DWC-OUT\\tata.log"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        448,
        0
      ],
      "id": "5a661257-8b07-4a52-8a35-7378a6041b98",
      "name": "Execute Command"
    },
    {
      "parameters": {
        "action": "generate",
        "dataPropertyName": "name"
      },
      "type": "n8n-nodes-base.crypto",
      "typeVersion": 2,
      "position": [
        224,
        0
      ],
      "id": "d9f0284c-37f2-450b-bf82-0797a7846cde",
      "name": "Crypto"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "8c84ede8-620e-4239-8eb2-a0a163a81b5d",
      "name": "When clicking ‘Execute workflow’"
    }
  ],
  "connections": {
    "Crypto": {
      "main": [
        [
          {
            "node": "Execute Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Crypto",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "c78380488df92849b1b8e3af79c30b1c2bb41f560ab5f6243b2168a9ea13a002"
  }
}
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

Execute Command and Write File nodes on Windows local install do not interpret JavaScript well, e.g. if I have a command with an argument from previous node (name = toto) for the filename "{{ $json.name}}.pdf", the actual name of file on disk will be {{ $json.name }}.pdf instead of toto.pdf

What is the error message (if any)?

No error, just wrong behavior or setup missing

Please share your workflow/screenshots/recording

<img width="1852" height="226" alt="Image" src="https://github.com/user-attachments/assets/c4ae8dd5-9ac8-4675-a292-5d536b7d846e" /> <img width="810" height="356" alt="Image" src="https://github.com/user-attachments/assets/a2dfce90-4362-402e-8445-f917249c84f0" /> <img width="301" height="164" alt="Image" src="https://github.com/user-attachments/assets/44e94652-90c7-4971-8d3f-940e298e0f9b" />
{
  "nodes": [
    {
      "parameters": {
        "command": "=C:\\_SOLU\\INSTALL\\TOOL\\pdfsign\\pdfsign -i C:\\_SOLU\\IN_OUT\\TSA-DWC-IN\\toto.pdf -o \"C:\\_SOLU\\IN_OUT\\TSA-DWC-OUT\\{{ $json.name }}.pdf\" --tsa=http://tsa.swisssign.net >> C:\\_SOLU\\IN_OUT\\TSA-DWC-OUT\\tata.log"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        448,
        0
      ],
      "id": "5a661257-8b07-4a52-8a35-7378a6041b98",
      "name": "Execute Command"
    },
    {
      "parameters": {
        "action": "generate",
        "dataPropertyName": "name"
      },
      "type": "n8n-nodes-base.crypto",
      "typeVersion": 2,
      "position": [
        224,
        0
      ],
      "id": "d9f0284c-37f2-450b-bf82-0797a7846cde",
      "name": "Crypto"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "8c84ede8-620e-4239-8eb2-a0a163a81b5d",
      "name": "When clicking ‘Execute workflow’"
    }
  ],
  "connections": {
    "Crypto": {
      "main": [
        [
          {
            "node": "Execute Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Crypto",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "c78380488df92849b1b8e3af79c30b1c2bb41f560ab5f6243b2168a9ea13a002"
  }
}

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. -->

Expected outpu should be toto.pdf on the file system

Debug info

core

  • n8nVersion: 2.20.11
  • platform: npm
  • nodeJsVersion: 22.22.0
  • nodeEnv: undefined
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: Community Edition Registered

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/148.0.0.0 safari/537.36 edg/148.0.0.0
  • isTouchDevice: false

cluster

  • instanceCount: 1
  • versions: 2.20.11
  • instances:
    • instanceKey: f7a769e4-ced2-43e5-92cc-39fb281296dd, hostId: main-RyOaGbM913AkPfrc, instanceType: main, instanceRole: leader, version: 2.20.11
  • checks:
    • check: hostid-clash, status: succeeded, warnings: -
    • check: lifecycle, status: succeeded, warnings: -
    • check: split-brain, status: succeeded, warnings: -
    • check: version-mismatch, status: succeeded, warnings: -

Generated at: 2026-05-18T20:31:03.972Z

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Execute Command, Write File nodes on Windows local install do not interpret JavaScript well