掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
フォルダのコピー? (ID:125005)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
これでいけると思うが、 Dim FromCopyFolder As String = "c:\hoge\*.*" Dim ToCopyFolder As String = "c:\newhoge\*.*" Dim PStartI As New System.Diagnostics.ProcessStartInfo Cursor.Current = Windows.Forms.Cursors.AppStarting() PStartI.FileName = System.Environment.GetEnvironmentVariable("ComSpec") PStartI.RedirectStandardOutput = True 'Outをリダイレクト PStartI.UseShellExecute = False 'リダイレクトを可能にする PStartI.CreateNoWindow = True 'Dos窓非表示 PStartI.Arguments = "/c xcopy " + FromCopyFolder + " " + ToCopyFolder + " /s" '/c は必要 Dim MyProcess As Process = Process.Start(PStartI) Dim ReturnString As String = MyProcess.StandardOutput.ReadToEnd TextBox1.Text = ReturnString MyProcess.WaitForExit() Cursor.Current = Windows.Forms.Cursors.Default
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.