Starts a new instance of the Windows XP command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
Switches:
/A — Output is ANSI.
/U — Output is Unicode.
/Q — Turns echo off.
/D — Disables execution of AutoRun commands.
/E:ON | /E:OFF — Enables or disables command extensions.
/F:ON | /F:OFF — Enables or disables file and directory name completion.
/V:ON | /V:OFF — Enables or disables delayed environment variable expansion.
/S — Modifies the treatment of the string after /C or /K (see below).
/C — Carries out the command specified by the string and then terminates.
/K — Carries out the command specified by the string but remains open.
e.g: open command prompt in specfic dir
@ECHO OFF
cmd.exe /K "cd C:\amroot\stash && C:"
Copy the following lines to Notepad.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Batch Files\syncfilestos3.bat" & Chr(34), 0
Set WshShell = Nothing
Note: Replace the batch file name/path accordingly in the script according to your requirement.
Save the file with .VBS extension, say launch_bat.vbs
Edit the .BAT file name and path accordingly, and save the file.
Double-click to run the launch_bat.vbs file, which in-turn launches the batch file syncfilestos3.bat invisibly.
use case :
Configure windows scheduler to periodically run sync jobs to cloud without getting a terminal pop up