Emulating a Network Drive on a PC

Win7BitsBytes

New member
Local time
11:04 AM
Messages
2
I have an Access database at work that has a lot of VBA code, which frequently accesses data on my server at work. It uses the full path to access network drives eg DataFolder = "\\MainServer\WorkData\". I want to do some development on my home PC, but obviously I don't have the work network available at home, so none of the code that accesses network drives will work. Is there a way I can setup a folder such that it looks like a network drive? Eg when the code looks for \\MainServer\WorkData\, it finds the local folder. I've seen lots of stuff on the Web about doing it the other way round ie make a network drive look like a local drive, but nothing about making a local drive (or folder) look like a network drive.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mesh
OS
Windows 7 Professional
CPU
Core i7-4770K
Motherboard
MSI
Memory
8GB
Graphics Card(s)
NVidia GeForce GTX 760
Hard Drives
Lots!
Antivirus
AVG Free
Browser
IE10

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
You just follow the very same procedure as if it was a network share, but doing it entirely local. Like every server, the SMB shares can be accessed from the server computer itself, just using the standard loopback interface.

Just create a share in your own machine, then you can access it from within that same machine using the localhost host (computer name or local IP also work, of course):

\\127.0.0.1\WorkData
\\localhost\WorkData

And it will behave pretty much in the same way as any other share on remote systems.
Then configure your program to point to those and you can test it entirely on local system without any network.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Close....!

Hi Alejandro85. Thanks for the suggestion. I've made an entry in my hosts file as follows:

127.0.0.1 MyServer

I can then ping MyServer and get 'Reply from 127.0.0.1: bytes=32 time<1ms TTL=128', so looks good.

I've then setup a shared folder, with permissions for everyone. I can successfully access it with \\localhost\MyFolder and \\127.0.0.1\MyFolder. However, when I try \\MyServer\MyFolder (which is what I want to do), I get an 'Enter Network Password' dialog. If I enter my logon name and password, it doesn't accept it. If I turn off Password Protected Sharing, I still get the network password dialog. I've checked the share and folder permissions and they're fine.

I'm obviously missing something. Any ideas?

Phil.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mesh
OS
Windows 7 Professional
CPU
Core i7-4770K
Motherboard
MSI
Memory
8GB
Graphics Card(s)
NVidia GeForce GTX 760
Hard Drives
Lots!
Antivirus
AVG Free
Browser
IE10
Back
Top