Jump to content

OniSplit: Difference between revisions

18 bytes added ,  11 September 2015
m
→‎Spaces in paths: easier-to-read command prompts
m (→‎Spaces in paths: easier-to-read command prompts)
Line 73: Line 73:
Command-line interfaces (CLI) do not recognize spaces as a possible part of a path name because spaces are what separate terms in your commands. The best course of action is to not use paths with spaces in their names! But if you must, you can use quotes to tell the CLI that a certain string is a single path:
Command-line interfaces (CLI) do not recognize spaces as a possible part of a path name because spaces are what separate terms in your commands. The best course of action is to not use paths with spaces in their names! But if you must, you can use quotes to tell the CLI that a certain string is a single path:


  C:\Games\Oni\>OniSplit.exe -list "My Mod Folder\level5_Final.dat"
  '''C:\Games\Oni\>'''OniSplit.exe -list "My Mod Folder\level5_Final.dat"


This works in the Mac Terminal too, but you can also use the escape character, <tt>\</tt>. Also, other characters like <tt>(</tt> need to be escaped as well if you do not use quotes:
This works in the Mac Terminal too, but you can also use the escape character, <tt>\</tt>. Also, other characters like <tt>(</tt> need to be escaped as well if you do not use quotes:


  iMac:Oni you$ mono OniSplit.exe -list My\ Mods\ \(In\ Progress\)/level5_Final.dat
  '''MyMac:Oni username$''' mono OniSplit.exe -list My\ Mods\ \(In\ Progress\)/level5_Final.dat


But as mentioned, the best practice is to not use any characters besides the alphabet and numbers. It makes your life simpler, and if you ask for help on the forum with a command, no one wants to have to read your long path with lots of spaces or escaped characters in it ;-)
But as mentioned, the best practice is to not use any characters besides the alphabet and numbers. It makes your life simpler, and if you ask for help on the forum with a command, no one wants to have to read your long path with lots of spaces or escaped characters in it ;-)