But it doesn’t really explain how to actually enter or use these.
How I do it now:
I make a textfile, typed in the location of vvvv, and than at the end I add my commandparameter. (example: C:\VVVV\vvvv_45beta34.1_x86\vvvv.exe /dx9ex )
Saved this, and renamed it to OpenVVVV.BAT
Now I need to click the batch file, vvvv opens , and than I can open the Patch that uses this (Spout sender in this case)
So I am pretty sure I am doing this wrong, how do you guys do this? I just want to open my main patch, not first vvvv and than my main patch. And the whole .txt to .bat thing feels like a detour.
creating a textfile and renaming it is perfectly valid…
if you open the .bat file shipped with vvvv you can see the following code:
@ECHO OFF
start vvvv.exe /o "girlpower\demo.v4p"
you can use this file and customize it to your needs. replace ‘vvvv.exe’ with the full path if the .bat file is somewhere else… dont forget “Quotes” if you have spaces in the path.
But since my vvvv instalation is on a fixed location, but that 1 patch that needs the /dx9ex command isn’t, I really need to enter 2 path names in the Batch file, one to open vvvv first, and the other one for the actual patch that I want to open… waw…
I was hammering a bit to hard, and missed that the /o needed a patchname.v4p right behind it, so this /dx9ex thing needs to go BEFORE the /o thing. Pfff… getting there.
@ECHO OFF
start D:\folder\vvvv_45beta34.1_x86\vvvv.exe /dx9 /o "C:\Users\x\Desktop\Example Folder\TextEX9GeometryHelpPatchCopy.v4p"
is the content of a batch file, that is saved on the desktop (C:\Users\x\Desktop\file.bat).
As you can see,
vvvv.exe is in D:\folder\vvvv_45beta34.1_x86\vvvv.exe
the patch is in folder “example folder”, which is on the Desktop (so it’s in another place as file.bat)
note how I look for the folder “Example Folder” -> this is not a case sensitive scenario
the patch is the copy of the help patch of Text(EX9.Geometry), a node that needs /dx9 to work properly
So here you can see that the three involved files are scattered over the disk, and that we need 2 commands to achieve our goal.
So we see that:
Using absolute paths to both vvvv.exe and the patch is the key.
The Command /o is closed (maybe completed is a better word) after the path to the file to be opened is declared -> /dx9 /o “qwe\asd asd\zxc.v4p” == /o “qwe\asd asd\zxc.v4p” /dx9.
** What @sunep is saying is that once every command is complete, their order does not matter.
Please let me know if this works for you.
I take this opportunity to wish everyone a Happy New Year!
Definitely. Paths declared are relative to the .BAT file: that is why the one coming with vvvv has a simple vvvv.exe, because they share the same directory.
Instead, as long as you don’t change both the vvvv folder and the path of the patch and as long as you use absolute paths, C:\what\ever\you\like.v4p, you can have your .BAT files wherever you like.
.BAT does what you tell him to do. It can’t know where the program or its associated files are. That why paths to both are required (in this case, at least). I guess you can easily build and save .BAT files with the use of nodes as Dir, Filename, + String, etc.
%0 is the zero-parameter of the batch script. It “expands to” the name of the bat-file.
%~0 Tilde strips double quotes (") around the expanded parameter
%~dp0d and p are modifiers. The d adds a drive letter and the p adds full path.
So as long as the path of vvvv / your patch in relation to the bat file stays the same you can move your project where ever you want without the need to change the bat-file.