Is there a function on windows that can do the same thing as `chroot` on linux?

There is a function chroot in Rust, which can force the running program only see limited file path. But that function only works for Linux. Is there a similar function that can do the same work for Windows?

depends on how much access do you have to the target machine. if you want, you can use a windows version of gnu (just look up gnu on windows, there's a ton of implementations). to include linux commands on windows, but for this to work, you'll need access to the windows PATH (which is the place windows looks for when running a command). if you do have that access, then you can just use chroot like you would on linux

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.