0

I have an old software which needs access to a network drive, eg. \\nameofnetworkdrive but the problem is that the network drive has now been replaced by an external USB drive (eg. drive X). Is there any way to create a symbolic link so that when the software tries to access \\nameofnetworkdrive it will in fact access from the new external drive X: instead? In other words, to trick the software into thinking that the network drive still exist but in fact it has been replaced by external drive X:?

I have tried to make the external drive X: as a network drive and try to use the same name as the previous network drive but this doesn't work because windows will automatically use the machine name of my computer as the first part of the name of the network drive, eg. \\computer name\nameofnetworkdrive

I am using an old Windows Vista. Grateful if anyone can show me what commands I can use in MS DOS to make this link.

Thank you!

===========UPDATED QUESTION=================================

Following the response I have received, I have created the network drive by the following:-

net share nameofnetworkdrive=X:

However, it has created a network drive with the name \\mycomputer\nameofnetworkdrive

Is there any way of making this network name to be \\nameofnetworkdrive without the mention of mycomputer? because the old software would only work if it can find a network drive with the name \\nameofnetworkdrive.

Grateful for any help on this! Thanks!

===================CURRENT PROBLEM===========

It would be easier if I explain the current problem. When I net share the external drive say X:, the path of such network drive will be called \[name of my computer][name that I create for this network drive]. Problem is my old software will only recognise a standalone network drive called \[name of network drive] but not one which is preceded by \[my computer]. The only way of course is to put the external drive into the network via an ethernet port (which is not possible because this drive does not have an ethernet port). As long as the external drive is plugged into my computer as an external drive when sharing the drive to the network its path will be preceded by the name of mycomputer. I am trying to find ways of getting rid of that path to mycomputer and making the drive as a stand alone network drive as if it was connected directly into the network via ethernet port. Hope this explains the problem. Thanks again for your help.

  • I have tried the command and created the network drive but the name of the network drive is now called \\mycomputer\test (using the same names as in your response) but the old software needs the network drive to be called \\test Is there anyway of changing the name so that the network drive is only referred to as \\test and without the computername? Thanks! – Data Dec 9 '18 at 13:41
  • In Windows, shared folders are accessed by system name, share name and resource - for example \\computer\shared or \\computer\shared\file.txt... \\computer has never been a valid UNC path for a directory - are you sure there isn't a particular structure of shared folders that the software requires too, and which it then concatenates onto the "base" path \\computer? – Attie Dec 9 '18 at 22:21
  • the previous old network drive was a stand alone network drive plugged into the ethernet, so there was no \\computer\... in front of the path. It was simply \\\networkdrivename. I am trying to create a new network drive with such same name \\\networkdrivename but I can't because the \\\mycomputername is now always in front. – Data Dec 9 '18 at 22:26
  • That's not how it works... – Attie Dec 9 '18 at 23:26
0

You may create a share from an elevated Command Prompt (cmd) with the net share command.

For example:

net share test=C:\Temp
dir \\mycomputer\test

This should also be possible from Windows Explorer (but I don't remember the menu command on Vista).

  • Thanks for your quick response! I will look up this command to learn more about it and give it a try. Thanks! – Data Dec 9 '18 at 13:20
  • I have tried the command and created the network drive but the name of the network drive is now called \\mycomputer\test (using the same names as in your response) but the old software needs the network drive to be called \\test Is there anyway of changing the name so that the network drive is only referred to as \\test and without the computername? Thanks! – Data Dec 9 '18 at 13:39
  • That syntax never worked on any Windows version, since test will be taken as the name of a computer. Are you sure? – harrymc Dec 9 '18 at 15:56
  • Because of the word limit in this comment box, I have described the problem as an update to my question above. Thanks. – Data Dec 9 '18 at 22:16
  • I never heard of the syntax of "\\share", even in Vista. This was always "\\computer". Maybe the old program expects such a computer to exist on the network. – harrymc Dec 10 '18 at 8:11
0

Haven't used Vista in a while, but this should still work if memory serves correctly.

Right-Click on My Computer > Manage > Disk Manager Right-Click on the USB drive and choose "Change Drive Letter and Paths..." Click Change, choose a new letter from the drop down, and then click OK. Your USB drive should no longer be using that letter.

Edit: Sorry, didn't read your post fully. Try this: In your hosts file, (C:\Windows\System32\drivers\etc\hosts)

127.0.0.1   nameofnetworkdrive 

Now when you use: \\nameofnetworkdrive it should point to your local machine. You'll need to share out the local drive to do this.

  • Thanks but your method will allow change to the name of the drive. But in my case, the network drive is named as \\\mycomputer\networkdrivename but I want the name to be without mycomputer and be just \\\networkdrivename. – Data Dec 9 '18 at 14:28
  • Thanks! I missed your edited response. I will try it now. – Data Dec 9 '18 at 22:31
  • Did my update help you resolve your issue? – Blerg Dec 12 '18 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.