• Copy File Directory Messed Up
    2 replies, posted
I'm trying to copy the bsp file to both my gmod maps folder and server maps folder with Run Map Expert. So I made a new Copy File command and used this for the parameters field: [CODE]$path\$file.bsp "D:\GMod Dev Server\garrysmod\maps\$file.bsp"[/CODE] But then the $file.bsp variable gets enclosed by quotes and Hammer tries to copy to this path now: [CODE]"D:\GMod Dev Server\garrysmod\maps\"test01.bsp""[/CODE] I don't know how to get around this... Thanks in advance!
try like $path\$file.bsp D:\GMod Dev Server\garrysmod\maps\ $file.bsp
[QUOTE=taz0;51198189]try like $path\$file.bsp D:\GMod Dev Server\garrysmod\maps\ $file.bsp[/QUOTE] No dice. :disappoint: Edit: All variables get placed in quotes, and when you put two variables together they'll concatenate. So using this trick I had to make sure my directory had no spaces like so: [CODE]$D:\gmod_devserver\garrysmod\maps\$file.bsp[/CODE] And voilà it becomes: [CODE]"D:\gmod_devserver\garrysmod\maps\test01.bsp"[/CODE] Not happy with how I had to do this but I guess it's better than copying and pasting manually every time I compile (I compile a lot).
Sorry, you need to Log In to post a reply to this thread.