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.
Microsoft is reportedly seeking help from its biggest cloud rival, Amazon Web Services, to address mounting capacity issues of GitHub. According to a report by Business Insider, this move of the company comes after a series of AI-driven outages on the coding platform, which Microsoft acquired in 2018. Despites its plans to migrate GitHub completely to Azure by 2027, increasing demand from AI coding tools has forced Microsoft to adopt a multi-cloud strategy...............
https://cio.economictimes.indiatimes.com/news/corporate-news/microsoft-taps-aws-for-github-capacity-amid-ai-driven-outages-and-multi-cloud-strategy/131761981
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