Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I access a CVS using batch files under Windows?

Hi,
 
I would like to create custom batch files to do things like moving stored images off of the CVS.  How can I copy files to/from the CVS, and how can I delete files on the CVS using a Windows batch file?
 
If this isn't possible, how about if I wrote a customer Visual C++ application or a Visual Basic application?  Is there an API to do these kinds of things with the CVS?
 
Thanks,
 
Jacques
0 Kudos
Message 1 of 6
(4,299 Views)
Hi Jaques,

There is no utility that will make it possible to format the CVS without MAX,  The only solution available would be to copy all of the files stored on the CVS with the initial configuration to a local host computer via FTP and push those files back on the CVS via FTP if there is a problem with the software.  This will effectively work as a backup for the configuration you want.  The chkdsk utility that is installed on the CVS when you configure it from your development computer should protect the FAT file system from corruption so simply creating the backup and restoring via FTP should take care of any data corruption issues.

Unfortunately, there is no API avialable for interfacing with the CVS directly through C++ or any other development environment at this time.

S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(4,294 Views)
Thanks for the tips.  Have you heard of http://www.webdrive.com/products/webdrive/index.html?  This looks like it could work well with the CVS.  They don't have a trial version, but I'll see if I can wrangle one out of them.
0 Kudos
Message 3 of 6
(4,290 Views)
Oops, I take that back, there is a trial version, I'll let you know how it goes.
0 Kudos
Message 4 of 6
(4,288 Views)

I've been using Filezilla with some success, but only as a method for me to restore the CVS, it's still too difficult a process to ask a client to go through.  I set up a batch file to call Filezilla with the -config option with a settings file.  The settings file sets up 2 windows, one pointing to a backup on my PC, and the other to the CVS.  I also have a prepared queue that I can load and execute that does the restore.  Some files cannot be overwritten, but it seems to fix the CVS during debugging when I get the CVS into a non-responsive state.  The CVS can be completely restored, but that requires stubborn files to be manually first renamed then deleted first, before executing a batch overwrite.

So when I enter Filezilla through the batch file with the preconfigured settings, I click on File/Connect, then on Queue/Import, then on Queue/Process and the CVS gets restored.  I've attached the files I use.  To create the queue file, in the left pane, select the contents of a CVS backup directory, right-click, and select "Add to Queue", the select Queue/Export.

Message 5 of 6
(4,254 Views)
Thanks for keeping us up to date on how things worked out.  It sounds like it was a bit of a process to set up, but looks like it worked out well.
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(4,246 Views)