Depending on information a user selects on a form through radio buttons the users computer should automatically map different network drives. I have made two asp pages. The first that contains the 'input' form with radio buttons and code like:
document.write "<INPUT type=radio value=" & <servername> & " name='N'>"
and the 'performing' form:
Set wshNetwork = CreateObject("Wscript.Network")
N = request.form("N")
wshNetwork.MapNetworkDrive "N:", "\\" & N & "\nerarkiv"
When run I receive the following error. 'Access is denied'. This I understand since everything between the <% and %> is executed on the 'server side', and it is the server that tries to map the drive. I have tried to switch the <%..%> signs with <script...>..</script> but the script stops on the line N=request.... with object not found. Any idea how to solve this ??