Euro Truck Simulator 2 (ETS2) http://steamcommunity.com/app/227300

I've been following this game for a while on Steam and finally bought it!

I've been writing a small script at work and I wanted to show the user the resulting image created on a network share.

But rather than assume that they all have the network share mapped to the same drive letter I thought it would be easier to use UNC (Universal Naming Convention).

This said it VBS scripting has been around since Windows 2000 but is not so friendly when it comes to UNC.

Finally found a post on the internet that helped, basically when using UNC you need to add Chr (34) before and after the UNC.

Example

Set Shell = CreateObject("WScript.Shell")

Shell.Run """C:\Users\Dave\Desktop\Image with a space in the name.png"""

Shell.Run Chr(34) & "\\SERVER\SHARE\Photos\2015-12-24\151.jpg" & Chr(34)

Shell.Run Chr(34) & "\\SERVER\SHARE\\Photos\5 Dinner\_DSC0417.jpg" & Chr(34)

Hope this little tip helps any other VBS Scriptwriters.

 

Running on Windows Server 2008 R2 SP2 with Hypervisor enabled, the first step was to create a new virtual machine (VM) from the Hyper-V Manager.

I choose a Windows 7 with 2048MB of Ram allocated, for DVD pointed to downloaded ISO file

 

Step by step with screenshots below;

Start & connect to the VM

 

 Next I choose the keyboard that my pc has (in this case Belgian Period)