11-21-2012 03:05 AM - edited 11-21-2012 03:06 AM
Hi guys. I'm trying to run an exe file (par2j.exe). The problem is being able to get the right cmd syntax and in the right order. I followed the command syntax provided with the exe but I cant figure it out. I created some recovery files of an image for testing purposes and just a simple demo VI that runs a self-test for the par2j.exe.
Initially, if anyone can show me how to at least run the "verify" command succesfully, then I think I can get the rest working.
Thanks
Kas
Solved! Go to Solution.
11-23-2012 02:21 AM - edited 11-23-2012 02:22 AM
Hi Kas,
To get the verify command work, I the entire string to the prompt should be :
par2j.exe verify Exit.jpg.vol26+4.par2
without the < > either end.
When I tried this I got “valid file not found”
Does this help?
James O’Neill – Applications Engineer – National Instruments
11-23-2012 02:47 AM
Thanks for your reply. I tried it that way as well. but no luck. It should say that file doesn't need to be repaired. If the original file damaged, it should say so and indicate how many more blocks are required.
Than using the "recover" command, it should procede to recovering the original data.
Kas
11-23-2012 10:47 AM - edited 11-23-2012 10:48 AM
It works for me if the filename is in quotes "Exit.jpg.par2"
MC
11-23-2012 11:56 AM
Can you show the reply form?
Thanks
Kas
11-23-2012 12:05 PM - edited 11-23-2012 12:06 PM
I tried the qutes and I get the reply as shown in the attached, and the message dowsn't say repair not needed, so I don't think its working. Also, the ERROR CODE should be 0 and not 1.
Kas
11-23-2012 12:30 PM
Well, I ran it again & got the same "valid file not found" error as you. Weird. It's to do with the working directory not being set.
If you wire the directory to the "working directory" input of the System Exec function, it then works.
MC
11-23-2012 01:08 PM
Very Nice. That did it.
Thanks
Kas