Get the App
SLTechnology News&Howtos  ›  Development  › 

How to read a text file on a remote computer with vbs

Shulou Source: shulou.com Published: 2022-06-03 19:38:03 11月12日 Update

This article introduces the knowledge of "how to use vbs to read text files on a remote computer". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The copy code is as follows:

Const ForReading = 1 Set objFSO = CreateObject ("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile _ ("\\ atl-fs-01\ public\ myfile.txt", ForReading) strContents = objTextFile.ReadAll objTextFile.Close Wscript.Echo strContents "how to use vbs to read text files on a remote computer" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Documents text code content more knowledge practicality achievement and then dilemma reality situation articles cases editing websites industries processes high quality learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft Shulou Technology NVidia Huawei