Ah. doh. Think I’ve answered my own question.
If you use /S, and wrap the whole thing in quotes, it just removes those outer quotes.
cmd.exe /S /C " do what you like here, quotes within the outermost quotes will be preserved "
More Related Contents:
- How can you find and replace text in a file using the Windows command-line environment?
- Single line with multiple commands using Windows batch file
- Adding a directory to the PATH environment variable in Windows
- How do I run two commands in one line in Windows CMD?
- Batch command date and time in file name
- How do I get the application exit code from a Windows command line?
- How to check if a process is running via a batch script
- How to echo with different colors in the Windows command line [closed]
- Maximum Length of Command Line String
- $LastExitCode=0, but $?=False in PowerShell. Redirecting stderr to stdout gives NativeCommandError
- How can I determine whether a specific file is open in Windows? [closed]
- How can I create an empty file at the command line in Windows?
- How to redirect Windows cmd stdout and stderr to a single file?
- Is there replacement for cat on Windows
- Get DOS path instead of Windows path
- Set The Window Position of an application via command line
- Windows command for file size only
- Capture program stdout and stderr to separate variables
- Why %processor_architecture% always returns x86 instead of AMD64
- How do I call a Windows shell command using VB6?
- PowerShell stripping double quotes from command line arguments
- List all environment variables from the command line
- Set window position of an application on Windows command line
- Get Folder Size from Windows Command Line
- How to create a Run As Administrator shortcut using Powershell
- Create a new cmd.exe window from within another cmd.exe prompt
- How do I minimize the command prompt from my bat file
- How can I run Cygwin Bash Shell from within Emacs?
- How to detect if CMD is running as Administrator/has elevated privileges?
- Difference between %variable% and !variable! in batch file