dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.24k stars 5.88k forks source link

This code does not work in VBS (Wscript/cscript) #23795

Open Jayman54P opened 3 years ago

Jayman54P commented 3 years ago

This code does not work

Expected ')' line 43


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BillWagner commented 3 years ago

@Jayman54P

Can you post a sample to help us determine the cause? The VB sample runs in VB.NET. without more details, it's hard to know what should change.

Jayman54P commented 3 years ago

I am trying to run this on vbs not vb.net Open Notepad and copy and paste from the website using IE to notepad, save as function.vbs or any file name.vbs Try to run the vbs as is pasted from the website, don't even have to actually call the function.

@.***D732B5.6851A710]

From: Bill Wagner @.> Sent: Friday, April 16, 2021 10:45 AM To: dotnet/docs @.> Cc: Palazzo, Jason @.>; Mention @.> Subject: [EXTERNAL] Re: [dotnet/docs] This code does not work in VBS (Wscript/cscript) (#23795)

While email attachments are a popular and convenient way to send documents, they are also a common source of viruses. Use caution when opening attachments, even if they appear to have been sent by someone you know.

@Jayman54Phttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJayman54P&data=04%7C01%7CJason.Palazzo%40umassmemorial.org%7C57e3eee4f5014e393e4508d900e62f25%7C9910941497df4111a54a633909f39003%7C0%7C0%7C637541810915944277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4oVfYq7cqnSXToSfI4sn4qI7gjTRxBbBT%2FRBHNppIUs%3D&reserved=0

Can you post a sample to help us determine the cause? The VB sample runs in VB.NET. without more details, it's hard to know what should change.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fissues%2F23795%23issuecomment-821227990&data=04%7C01%7CJason.Palazzo%40umassmemorial.org%7C57e3eee4f5014e393e4508d900e62f25%7C9910941497df4111a54a633909f39003%7C0%7C0%7C637541810915954264%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IxYgtevL7A3gmyPEBVnKWE2PveDNX%2FyR%2B%2BgVBLJdcTM%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATVW5FVQZEW2MHY3LOQO53DTJBEOBANCNFSM4256JBLA&data=04%7C01%7CJason.Palazzo%40umassmemorial.org%7C57e3eee4f5014e393e4508d900e62f25%7C9910941497df4111a54a633909f39003%7C0%7C0%7C637541810915954264%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5vOqV8pN5U1NBLcApkIc1gadsEqzUolVViWKSZOm8Ts%3D&reserved=0.

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, transmission, re-transmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.