The path to the INET control, a space in the file name appears in the file name

zhaozj2021-02-11  183

When calling the INET control in the VB, the local file path is called, or when there is a space in the file name, the corresponding file will not be transmitted, and there will be an error, so how to solve it?

Actually, it is simple: add double quotes in both sides of the path or file name.

The examples are as follows: inet1.execute txturl.text, "put" "c: / my documents / send.txt" "SentDocs / Sent.txt".

The local file name is: c: / my documents / send.txt, to add double quotes on both ends. Why do you want to write two? Because this dual quotation marks are between the double quotes of the string, one should change two.

Welcome everyone to communicate with me. Mailto: lvgang@cassae.ac.cn

转载请注明原文地址:https://www.9cbs.com/read-4393.html

New Post(0)