Hi, I'm trying to use wget to automate some file downloading and seem to be having some trouble getting the syntax just right, was wondering if someone with a bit more experience could assist me here.
I'm using:
wget -x -nH --directory-prefix=c:\directory\structure\here -r -np --cut-dirs=4 --reject=html http://www.example.com/directory/str...older2download
This downloads the proper files to the proper directory, but then it moves up 1 directory on the web and downloads all the files/folders in the parent directory and puts them all in c:\directory\structure\here from reading online I thought -np would stop this am I wrong? Or is something else going on? O also this isn't actually running on ubuntu I'm using wget for windows which uses the same commands/switches as wget in linux/ubuntu as far as I can tell.
Bookmarks