Trên dòng lệnh Windows, điều này sẽ tạo ra một tệp mới gọi là test.txt
> echo "hello world" > test.txt
Tôi muốn tạo một tệp mới VÀ một thư mục mới trong một bước. Cái gì đó như
> echo "hello world" > newFolder\test.txt
Nhưng nó chỉ tạo ra lỗi: The system cannot find the path specified.
Có bất kỳ cơ hội để tránh sử dụng thêm mkdir newFolder?