Create 10,000 dummy React Views (Windows 11)
Does anyone know how to create a batch script to create dummy views. Just need 10,000 files with the pattern of something like
View$i.tsx
and then content is just random HTML that is 100KB in size. It's a weird set of requirements but is needed for performance testing.Solution:Jump to solution
this worked
```cmd
"View!fileNum!.tsx" echo export const testFunction!fileNum! = ^(^) =^> {>> "View!fileNum!.tsx" echo return ( >> "View!fileNum!.tsx" echo ^<div^>...
4 Replies
The closest I've gotten is this but the file content is wrong:File content:
Solution
this worked
basically you escape the parentheses like you escape the angle brackets
Yep that worked. Do you know why there's a (around) 8000 byte limit for variables? Or just for loops in general
lol yeah that's the environment limit thing. I don't really know why, it's just is.
is there any reason you're using batch instead of powershell?