LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Access over .bat file

Hi,
 
I am trying to access to a ftp server using a Batch file i wrote. The Batch file works, if i start it manually. However, if i call it using the System exec.vi  (giving it to the command line input, as working directory the directory where the batch file is in) it doesnt work, I just see the cmd.exe window doin nothing (i can also not write anything in, its just black) i waited for some minutes but nothing happens, do you know what this could be ?
Or better, how i could solve it ?
 
thank you,
Blanky
0 Kudos
Message 1 of 6
(3,965 Views)
Hi Blanky,
how do you call the system exec vi? Do you call it with "cmd /c" before your file name?
Mike
0 Kudos
Message 2 of 6
(3,963 Views)

I tried it with the cmd /c and without, happens the same thing with both.

My .bat file looks like this:

ftp -i -A -s:ftp.txt xxx.xxxx.xxx

And in the ftp.txt are the commands he shall do.

I tried it also with putting the command directly in there (with cmd /c) and putting the paramters in the standard input input.



Message Edited by Blanky on 07-03-2008 08:28 AM
0 Kudos
Message 3 of 6
(3,961 Views)

Hi Blanky,

try this. This works for me. It load the file, but because i have an empty file i get an error message, but it should work for you.

The path shall be a path to a directory (without the filename).

Hope it helps.
Mike



Message Edited by MikeS81 on 07-03-2008 03:59 PM
Message 4 of 6
(3,947 Views)

Ah, very nice, it works

thank you very much

0 Kudos
Message 5 of 6
(3,943 Views)
You may also want to consider looking at the old OpenG Internet Connectivity Tools so you don't have to resort to using System Exec.
0 Kudos
Message 6 of 6
(3,937 Views)