You are not logged in.

#1 10 Apr 2021 22:13

lazna
Member
Registered: 15 Apr 2020
Posts: 12

'REM' is not recognized as an internal or external command

Calling batch file from another batch file by

call functions\batch.cmd

at the beginning of batch.cmd there are few description lines each started by REM tag, batch file provide following error messsage:

'REM' is not recognized as an internal or external command operable program or batch file.

Same situation when replacing 'REM' with '::'

Script is writen in PSpad and saved as 'Unicode UTF-8 No BOM (65001)', there are no hidden unprintable characters.

Windows 7, 32bit EN. What am I doing wrong?

Offline

#2 11 Apr 2021 03:22

Shadow Thief
Member
Registered: 12 Jul 2012
Posts: 205

Re: 'REM' is not recognized as an internal or external command

I can't replicate your problem in a VM, but you should always save batch scripts with what PSpad refers to as "ANSI default (0)" encoding, as anything else can have unintended effects.

Offline

#3 11 Apr 2021 08:37

lazna
Member
Registered: 15 Apr 2020
Posts: 12

Re: 'REM' is not recognized as an internal or external command

Problem solved.

Yesterday evening i have mislooked at file encoding. It was save at UTF-8 with BOM, when save as no BOM, it working fine.

Sorry for mess...

Offline

Board footer

Powered by