I am an absolute noob to VB. I'm kind of crashing myself into it because of my situation. I fell in on a network that was already in place. The guys here before me wrote some scripts in VB that automatically map network printers, shared folders, etc. The only problem is that they've been around for about 5 years and gone through two or three groups and have become quite bloated, and buggy. One thing they do is redirect everyone's home directory to our server. So, seeing as I don't know enough about VB to modify the ones in existence (comfortably anyway) I'm writing a brand new one. I've never written VB before, so I'd like you to look over the code I've written so far and tell me if it would work. I've written it only to do the two tasks I want it to do, map network drives and printers.
Also I was wondering what the "Dim" before variables does? I've seen it in example scripts that I googled, and the scripts that are in existence.
Attached is a .txt version of what I've got written so far.
This 4K webcam from Acer is now only $59.99 by Taras Buria
Those looking for an affordable, high-resolution webcam from a reputable manufacturer can check out the latest deal from Acer, which puts its 4K webcam at a solid price. Thanks to a 14% discount, you can buy this all-metal 4K webcam from Acer for just $59.99.
Despite the affordable price tag, the webcam has a pretty large 1/2" CMOS sensor manufactured by Sony. Apart from its size, it supports additional conveniences, such as high dynamic range and phase-detection autofocus (PDAF). Plus, the camera ensures you do not have to buy additional audio equipment, as it comes with two built-in high-sensitivity microphones, a built-in background noise filter, and the ability to pick up your voice from up to 2.5 meters away.
Acer is not cheaping out on materials, and the webcam is enclosed in a more premium metal case, which is also good at heat dissipation (high-resolution cameras can get quite hot). And to make sure no one is peeping at you when the camera is in use, there is a magnetic cover also made of metal.
Additional conveniences include an LED status indicator and a built-in mount that lets you place a camera on a tripod.
Acer 4K Webcam for PC/Mac with All-Metal Unibody Sculpted - $59.99 | 14% off
Good to know
This Amazon deal is U.S.-specific and not available in other regions unless specified.
We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only.
Check out Today's Deals on Amazon | or our recent tech deals.
Become a Prime member (for Students or SNAP) via Neowin
Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP)
Subscribe to Prime Video, Audible Plus, Music Unlimited, or Kindle Unlimited via Neowin
As an Amazon Associate, we earn from qualifying purchases.
Question
Gerowen
I am an absolute noob to VB. I'm kind of crashing myself into it because of my situation. I fell in on a network that was already in place. The guys here before me wrote some scripts in VB that automatically map network printers, shared folders, etc. The only problem is that they've been around for about 5 years and gone through two or three groups and have become quite bloated, and buggy. One thing they do is redirect everyone's home directory to our server. So, seeing as I don't know enough about VB to modify the ones in existence (comfortably anyway) I'm writing a brand new one. I've never written VB before, so I'd like you to look over the code I've written so far and tell me if it would work. I've written it only to do the two tasks I want it to do, map network drives and printers.
Also I was wondering what the "Dim" before variables does? I've seen it in example scripts that I googled, and the scripts that are in existence.
Attached is a .txt version of what I've got written so far.
mapresources.txt
Link to comment
https://www.neowin.net/forum/topic/704818-vb-noob-curious-about-commands/Share on other sites
11 answers to this question
Recommended Posts