How to run "fsutil file createnew" on windows10 system? #351
Replies: 4 comments
-
https://github.com/google/zx#maxbuffer $.maxBuffer = 1024 * 1024 * 1024
$`cmd which requires a very large buffer` |
Beta Was this translation helpful? Give feedback.
-
thank you, but it seems have no effect, still has the same problem. #!/usr/bin/env zx
try {
const size = 1024 * 1024 * 1024;
$.maxBuffer = size;
// 1GB
await $`fsutil file createnew bigfile.txt ${size}`;
} catch (p) {
console.log(`Exit code: ${p.exitCode}`);
console.log(`Error: ${p.stderr}`);
} |
Beta Was this translation helpful? Give feedback.
-
Strict limit. I suggest adding a bit more bytes. Perhaps the problem is with the quotes. Can you check plz:
|
Beta Was this translation helpful? Give feedback.
-
@antongolub I just test, it has nothing to do with quotes on windows.😅 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.It will get such a problem
Specifications
Beta Was this translation helpful? Give feedback.
All reactions