1

Would anybody help in executing Subst command in PowerShell; so that it reflects the virtual drive in Windows Explorer!

Thanks in anticipation.

Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
Raabi Anony
  • 25
  • 2
  • 8

1 Answers1

1

This should work:

Invoke-Expression "subst Z: C:\some\folder"
Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
  • Thanks for your attention. Unfortunately, it does not show the virtual drive in Windows Explorer. It works within PowerShell console or PSIE. Please suggest a way of creating the drive; which shows up in Explorer. – Raabi Anony Feb 25 '13 at 18:32
  • @RaabiAnony Press F5 to refresh the view in Explorer. Also check if Explorer is configured to hide empty drives (that's the default). – Ansgar Wiechers Feb 25 '13 at 18:36
  • Yes, I have done it. Just to confirm, I created the same drive, Z for example; again in the Explorer; and it created as well as displayed it. Actually, I am trying it for a few days, using different ways; but without success. – Raabi Anony Feb 25 '13 at 18:56
  • @RaabiAnony All I can say is that it works just fine on my testbox. Directly as well as with `Invoke-Expression`, in the shell as well as in a script. – Ansgar Wiechers Feb 25 '13 at 19:07
  • I am using Windows 8. Let me explore this aspect. – Raabi Anony Feb 25 '13 at 19:23