Skip to content

}bedrock.server.executecommand #431

@ak-cube

Description

@ak-cube

Describe the bug
CMD version of the command line doesn't work

The current line
sCommand = 'CMD.EXE /C "' | sCommand | '" 1> ' | cCmdOutputFile | ' 2>&1';

Expected line
sCommand = 'CMD.EXE /C "' | sCommand | ' > "' | cCmdOutputFile | '" 2>&1"';

Description of changes

  • 1> - it doesn't make sense in CMD
  • The whole statement after CMD.EXE /C should be included in double quotes, not the only sCommand
  • cCmdOutputFile may contain spaces, so it also needs to be enclosed in double quotes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions