Hi to add here is the full code I use..I am creating a batch file which upon execution downloads the files to specified directory from ftp..
The code works when I let it download to the path the current workbook is in but not when I specify the full path 1 folder deeper it does not work.. I use the below code in red( the full code is below)
This is last thing that is keeping me from finishing this project. Any help would be greatly appreciated!
Print #lInt_FreeFile01, "recv myfile.txt" & """M:\test\New York\Manhattan Streets" & "\myfile.txt"""
'it works if I use below line, but that just download to the current path(M:\test\New York) where my workbook is saved, I just need the files downloaded 1 folder 'deeper (M:\test\New York\Manhattan Streets)
Print #lInt_FreeFile01, "recv myfile.txt" & ThisWorkbook.Path & "\myfile.txt;"
Bookmarks