Shell$
QuotedString = Shell ( String )
QuotedString = Shell$ ( String )
引述一个字符串使其能被安全的发送到
SHELL 命令行。
示例
'This routine will create a file in your home folder with the name "what a stupid name 4 a file % $ !.txt"
'The string created by Shell$ will be printed and the file opened.
Public Sub Main()
Dim sString As String
sString = Shell$("what a stupid name 4 a file % $ !.txt")
Print sString
Shell "echo " & sString & " >> " & user.home &/ sString
Shell "cat " & User.home &/ sString
End
参见