Opened 13 years ago

Closed 12 years ago

#14 closed defect (fixed)

CDWithoutBackslash=2 breaks some scripts

Reported by: Gregg Young Owned by: andi.b
Priority: minor Milestone: Version-3.08
Component: Base Version:
Keywords: Cc:

Description

I have tried running fm2dump.cmd and keep getting the following error
message:

G:\FM2.TEST\FM2DUMP.CMD [34] Unknown command "orlevel"
Directory U:\Dump does not exist - check set D= statement on line 26

Line 34:
if not errorlevel 1 goto DirOK

This is caused by CDWithoutBackslash=2. If I don't set
it (default is 1 check for executable first) fm2dump works. If I type fm2dump.cmd (adding the extension) with it set to 2 it works.
It's obvious that something is gobbling up some of the characters that
should be part of the next statement. You can make the error message
disappear by adding a few blanks lines before the if statement. I am attaching fm2dump.cmd as a test case

Attachments (1)

fm2dump.cmd (6.1 KB) - added by Gregg Young 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Gregg Young

Attachment: fm2dump.cmd added

comment:1 Changed 13 years ago by andi.b

Owner: changed from somebody to andi.b
Status: newaccepted

Confirmed with your test example. Thanks for reporting.

Problem is DosFindFirst? with MUST_HAVE_DIRECTORY flag returns NO_ERROR even if string is something like 'dir /A /T U:\Dump' (only includes directory name but whole string is not one).

Have to investigate further.

comment:2 Changed 12 years ago by Steven Levine

Milestone: Version-3.07

comment:3 Changed 12 years ago by andi.b

Resolution: fixed
Status: acceptedclosed

fixed with 3.08

Note: See TracTickets for help on using tickets.