Skip to content

Incorrect use of delayed expansion #29

@Logovore

Description

@Logovore

You should use:
for /R "%CYBERPUNKDIR%" %%F in (*.log *log.txt) do (
and
set "relative_path=!relative_path:%CYBERPUNKDIR%=!"
Using delayed expansion in a substring operation can cause the variable substitution to malfunction, which it does here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions