Opened 13 years ago
Closed 13 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)
Change History (4)
by , 13 years ago
Attachment: | fm2dump.cmd added |
---|
comment:1 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 13 years ago
Milestone: | → Version-3.07 |
---|
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.