Hello to all vb programmers. I need a little help on how to run a dos command line using visual basic. I have this dos command line:
C:\Documents and Settings\nagatron> echo Main-Class: ProgressBarStep >manifest.txt
where it create a manifest.txt file inside the directory "C:\Documents and Settings\nagatron". How can I execute this COMMAND in VB6? I have a code here:
Private Sub Command1_Click()
Dim command As String
command = "C:\Documents and Settings\nagatron> echo Main-Class: ProgressBarStep >manifest.txt"
Shell "cmd.exe /c command"
End Sub
but it didn't work