| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「VBS 二重引用符で囲まれた文字列」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
(ページの作成:「==VBS 二重引用符で囲まれた文字列== 特にエスケープ等しなくても、括弧を利用するように展開される(バッチでもおなじ) S…」)
 
4行目: 4行目:
  
 
  Set WshShell = WScript.CreateObject("WScript.Shell")
 
  Set WshShell = WScript.CreateObject("WScript.Shell")
  WshShell.Run "cmd /c ""type ""c:\te sta.txt"" > ""c:\te stb.txt"""""
+
  WshShell.Run "cmd /c ""type ""c:\te sta.txt"" > ""c:\te stb.txt"""""
  
 
考え方
 
考え方
  WshShell.Run (cmd /c (type (c:\te sta.txt) > (c:\te stb.txt)))
+
  WshShell.Run (cmd /c (type (c:\te sta.txt) > (c:\te stb.txt)))

2020年2月15日 (土) 08:06時点における版

VBS 二重引用符で囲まれた文字列

特にエスケープ等しなくても、括弧を利用するように展開される(バッチでもおなじ)

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /c ""type ""c:\te sta.txt"" > ""c:\te stb.txt"""""

考え方

WshShell.Run (cmd /c (type (c:\te sta.txt) > (c:\te stb.txt)))