“Batch Hapus Kutipan Ganda” Kode Jawaban

Batch menghapus kutipan

set foo="quoted string"
set foo=%foo:"=%		// Remove the quotes
Clear Cat

Batch Hapus Kutipan Ganda

# Removing quotes from batch script arguments
# e.g. c:/path/to/my-script.bat "my-first-argument"
set foo=%1 # Stores "my-first-argument" with the quotes
set foo=%~1 # Stores "my-first-argument" without the quotes
Muddy Moose

Jawaban yang mirip dengan “Batch Hapus Kutipan Ganda”

Pertanyaan yang mirip dengan “Batch Hapus Kutipan Ganda”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya