How to read a text file on a remote computer with vbs
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!