• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

COMP 230 Week 3 Lab: VBScript Network Shares Lab Report (SOLVED)

Document preview thumbnail
Preview 1 out of 4 pages

COMP 230 Week 3 Lab: VBScript Network Shares Lab Report (SOLVED)

Content preview

VBScript Network Shares Lab Report
In the space provided below, copy and paste your NetShareServer.vbs Program Code.


' VBScript: NetShareServer.vbs
' Written by:
' Date: 09/12/2016
' Class: COMP230
' Professor: Stanley Kuchel
' =========================================
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileServ = GetObject("WinNT://Vlab-PC1/LanmanServer,FileService")

if fso.folderexists("C:\Public") then
fileServ.Delete "FileShare","PublicData"
fso.deletefolder("c:\public")
Wscript.echo "Public folder deleted"
End if

fso.CreateFolder("C:\Public")
fso.CopyFile "C:\Windows\Cursors\w*.*","C:\Public"

WScript.Echo vbCrLf & "Current Network Shares"
For Each sh In fileServ
WScript.Echo sh.name
Next

Set share = fileServ.Create("FileShare", "PublicData")
share.Path = "C:\Public"
share.MaxUserCount = 10
share.SetInfo

WScript.Echo vbCrLf
WScript.Echo "New Network Shares"
For Each sh In fileServ
WScript.Echo sh.name
Next

WScript.Echo vbCrLf & "\\vlab-PC1\PublicData Share will be Available for 60 seconds!!"
WScript.Sleep(60000)

fileServ.Delete "FileShare","PublicData"
fso.DeleteFolder "C:\Public",True

WScript.Echo vbCRLF & "End of Program"




COMP230_Wk3_Network_Shares_Report.docx 1
Revision Date: 1213
This study source was downloaded by 100000845689434 from CourseHero.com on 05-05-2022 12:03:17 GMT -05:00


https://www.coursehero.com/file/18661411/LAB-Week-3/

Document information

Uploaded on
May 5, 2022
Number of pages
4
Written in
2021/2022
Type
Exam (elaborations)
Contains
Unknown
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ProfGoodluck
4.0
(705)
Sold
3631
Followers
2870
Items
9468
Last sold
1 hour ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions