07-24-2020 05:16 AM
I have a file in a repository that I normally access via the shell extension for tortoise svn, I usually right-click and select SVN Checkout.
I want to program LabVIEW to copy a file to my PC.
e.g. source path is svn://myserver/myrepo/trunk/Config/ConfigFile.ini
copy to C:\Temp
Note that I'm not asking about source control of my labview code or anything to do with source code control. I just want to a copy a file from A to B.
Solved! Go to Solution.
07-24-2020 06:18 AM
07-24-2020 11:01 AM
@GerdW wrote:
Hi bmann,
are you looking for this?
Having followed @GerdW's suggestion for you 😉 I found this function.
Based on my (limited) usage of Tortoise SVN, I would expect it to work for you. (In my case, I was able to access the server via File Explorer, too, so I would assume this will work.)
I would try this function first. If it doesn't work, report back on what happened (and attach a snippet of your VI showing what you've tried).
-joeorbob
07-24-2020 11:03 AM
You want to use the svn export command with System Exec:
svn export [path to target] [path to new directory]
i.e.,
svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini c:/config_files
Note the target needs to be the directory in which you want the file, not the new name of the file.
07-27-2020 04:25 AM
Many thanks, LabVIEW can do it using System Exec.vi.
First you need to re-install SVN Tortoise and select the option to include command line tools.
Then you need to create the target directory for your file, as the command line will not create it for you.
The line below worked from command window and then just the same from System Exec.vi.
svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini C:\FolderIcreated\Main.ini
08-05-2020 02:21 PM
svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini C:\FolderIcreated\ConfigFile.ini