Skip to content

How to run "fsutil file createnew" on windows10 system? #348

@wood3n

Description

@wood3n

Expected Behavior

run successfully

Actual Behavior

run failed

Steps to Reproduce the Problem

I want to use fsutil file createnew to create large size file on windows10 system, that's my code.

#!/usr/bin/env zx

try {
  // 1GB
  const size = 1024 * 1024 * 1024;
  await $`fsutil file createnew bigfile.txt ${size}`;
} catch (p) {
  console.log(`Exit code: ${p.exitCode}`);
  console.log(`Error: ${p.stderr}`);
}

It will get such a problem

image

Specifications

  • Version: 6.0.1
  • Platform: windows 10 - 19044

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions