Код: Выделить всё
'архивируем раром
a = """d:\Program files\WinRAR\rar.exe"" u -m1 """ & pathArc & "\" & namearc & """" & " """ & fldNew & "\" & """"
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run aКод: Выделить всё
'архивируем раром
a = """d:\Program files\WinRAR\rar.exe"" u -m1 """ & pathArc & "\" & namearc & """" & " """ & fldNew & "\" & """"
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run aКод: Выделить всё
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("calc")
Do While oExec.Status = 0
WScript.Sleep 100
Loop
WScript.Echo oExec.Status