Jrepl /f not accepting more than one variable

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
PaperTronics
Posts: 118
Joined: 02 Apr 2017 06:11

Jrepl /f not accepting more than one variable

#1 Post by PaperTronics » 02 Jul 2017 22:18

Hey guys!

I just started using Jrepl today because I wanted to delete all lines in Detective.savedata that contain the characters entered in the !codename! variable.

Code: Select all

Call Jrepl.bat "%codename%" " " /f %systemdrive%/system/myfolder/Detective.savedata   /o -


But when I run the code stated above, it gives a error:

Code: Select all

ERROR: Too many arguments.
  Use JREPL /? or JREPL /?? to get help.


It doesn't accept anything that's written in front of the %systemdrive% variable.
I tried putting the whole path in one var, that doesn't work.
I tried using ! exclamation marks instead of % percentage signs that has no effect either


If someone can help me, I would extremely grateful.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Jrepl /f not accepting more than one variable

#2 Post by aGerman » 03 Jul 2017 00:27

I don't know by heart if the syntax is correct in general, but
- Use backslashes in paths as usual on Windows. I assume a forward slash is taken as beginning of an option which might have caused your error message.
- Enclose paths in quotation marks. It will work even if you don't have spaces or special characters in the path that would fail whithout quotation marks.

Steffen

PaperTronics
Posts: 118
Joined: 02 Apr 2017 06:11

Re: Jrepl /f not accepting more than one variable

#3 Post by PaperTronics » 03 Jul 2017 01:08

aGerman wrote:Use backslashes in paths as usual on Windows. I assume a forward slash is taken as beginning of an option which might have caused your error message.


Thanks aGerman! It worked. I figured that the error was been because Jrepl was assuming that the forward slashes are arguments as in reality they were the path.


Thanks,
PaperTronics

Post Reply