Académique Documents
Professionnel Documents
Culture Documents
Class
Date
COMP230_W3_NetworkShares_evKey.docx
In the space provided below, copy and paste the RUN of your NetShareServer.vbs program:
cscript NetShareServer.vbs Process started >>> Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.
Current Network Shares Users New Network Shares PublicData Users \\vlab-PC1\PublicData Share will be Available for 60 Seconds!! End of Program <<< Process finished.
COMP230_W3_NetworkShares_evKey.docx
In the space provided below, copy and paste your NetShareClient.vbs Program Code:
' VBScript: NetShareClient.vbs ' Written by: Student Name ' Date: Today's Date ' Class: COMP230 ' Professor: Professor Name ' ============================================== Set fso = CreateObject("Scripting.FileSystemObject") Set networkObj = WScript.CreateObject("WScript.Network") networkObj.MapNetworkDrive "X:","\\vlab-PC1\PublicData" Set folder = fso.GetFolder("X:\") Set files = folder.Files WScript.Echo vbCrLf WScript.Echo "Contents of Mapped Drive X:" For Each item In files WScript.Echo item.Name Next networkObj.RemoveNetworkDrive "X:",True WScript.Echo vbCrLf & "End of Program"
COMP230_W3_NetworkShares_evKey.docx
In the space provided below, copy and paste the RUN of your NetShareServer.vbs program: cscript NetShareClient.vbs Process started >>> Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.
Contents of Mapped Drive X: wait_i.cur wait_il.cur wait_im.cur wait_l.cur wait_m.cur wait_r.cur wait_rl.cur wait_rm.cur End of Program <<< Process finished.
COMP230_W3_NetworkShares_evKey.docx