Use square brackets instead of quotation marks:
IF [%1] == [] GOTO MyLabel
Parentheses are insecure: only use square brackets.
More Related Contents:
- How to expand a CMD shell variable twice (recursively)
- At which point does `for` or `for /R` enumerate the directory (tree)?
- Batch file: Find if substring is in string (not in a file)
- Iterate all files in a directory using a ‘for’ loop
- Batch character escaping
- How to wait all batch files to finish before exiting?
- How to do something to each file in a directory with a batch script
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- How do I escape ampersands in batch files?
- Using a custom Tee command for .bat file
- Find out if file is older than 4 hours in Batch file
- Batch script: how to check for admin rights
- How to correct variable overwriting misbehavior when parsing output?
- FORFILES date -after- (date calc in cmd file)
- Create an empty file on the commandline in windows (like the linux touch command)
- How do I echo and send console output to a file in a bat script?
- XCOPY still asking (F = file, D = directory) confirmation
- Using another language (code page) in a batch file made for others
- How can I debug a .BAT script?
- Redirecting Output from within Batch file
- Start multiple tasks in parallel and wait for them in windows?
- How do I create a shortcut via command-line in Windows?
- Why does findstr not handle case properly (in some circumstances)?
- Windows batch: sleep [duplicate]
- Batch script with for loop and pipe
- How to pass environment variables as parameters by reference to another batch file?
- Execute multiple batch files concurrently and monitor if their process is completed
- Windows shell command to get the full path to the current directory?
- Using echo y as an automated response to a pcp hostkey prompt
- Batch file to upload .txt to FTP