0

I have a problem where I am try to set the following variable

set params=--no_data=true --add-drop-table=false --skip-dump-date

However I keep getting the error '--no_data' is not recognized as an internal or external command. How do I get round this?

3
  • Try it with ``"quotes"'' Commented Aug 3, 2013 at 1:04
  • I have tried that but no luck Commented Aug 3, 2013 at 1:05
  • 1
    It works fine from a command prompt. Please edit your question to show your actual code in context instead of a single line. (As a side question: you have a strange mix of underscores (no_data) and hyphens (add-drop-table). Are you sure parameters to the same executable are so different in format?) Commented Aug 3, 2013 at 1:10

2 Answers 2

1

The problem is not with that line but with another line that attempts to invoke 'params' as an executable. Probably that other line should first list the executable (mysqldump.exe presumably) and then pass in params, something like this:

mysqldump.exe %params%
Sign up to request clarification or add additional context in comments.

Comments

0

try this:

set "params=--no_data=true --add-drop-table=false --skip-dump-date"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.