r/PowerShell • • Apr 21 '26

PSDrive

Hi..

I have created a new PSDrive having name `S:`.

new-psdrive -name S -psprovider filesystem -root c:\users\username\dir

one running command `get-content` works fine, but `vim` is opening a blank file.

get-content S:\test.txt # works fine

vim S:\test.txt # opens a blank file

8 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/LordOzmodeus Apr 21 '26

Thats probably the best way to go about it. If you don't already, get used to using tab for autocompletion of file names as well. Just type the first few letters of the file name and hit tab a few times as needed to fill in the rest.