Solved

parse input paramaeter of a batch file

Posted on 2003-12-08
1
807 Views
Last Modified: 2008-02-01
Hi!
I get parameters in a batch file but I get them '"' (like: "AAA").
I want to strip them from the '"' if they have such.
Is there a way to do this?
Thanks!
0
Comment
Question by:rzvika2
1 Comment
 
LVL 5

Accepted Solution

by:
brianadkins earned 50 total points
Comment Utility


Couple ways to do this:

Strip off first and last characters:
     set VAR=%VAR:~1,-1%

or

Replace all quotation marks with nothing:
     set VAR=%VAR:"=%

-Brian Adkins
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now