Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am using wget in my windows PC to download files from an ftp server. But it downloads files into a folder where wget.exe is located. But i want it to download files to another folder.How it can be done?( i saw some links which i guess works only in linux).
#WINMAN please look into the following thread for your query, which might help you i hope
How to specify the location with wget?
−P prefix
−−directory−prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories
will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).
Taken from the PDF, which comes with the docs from here: http://gnuwin32.sourceforge.net/packages/wget.htm
All other command-line arguments are in the pdf as well, so you should look into it.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I've downloaded some journal papers where the default name for the PDFs are too long. Windows won't allow me to open the files, let alone rename them by pressing F2.
How do i rename these PDF files so i can actually do something with them?
I had quite a number of journals that wouldn't copy to a new location because of the length of the filenames. I attempted to use Rename Master to rename all of the files but 27 have resisted the program renaming them. Which is when i discovered that i couldn't open them or rename them using F2.
Thanks
The solution that i found to resolve this problem is to use zip, you only have to zip them and after that you can Copy/Paste them where ever you want, hope that helped you.
Update 3/1/2022
7zip will let you rename the file without creating an archive.
The only thing that i found would work is what Yagami Light suggested.
I zipped the entire folder with the files that had the stupidly long file names. I moved it to the root directory. Unzipped the files and Windows allowed me to edit the file names.
Windows wouldn't allow me to zip the individual files hence why i zipped the entire folder.
Thanks Yagami
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
hey guys so im using Ubuntu and im having a issue finding the files using the ln command
currently i have a folder called myName.2 within it are 3 folders notes, assignments and web.
within notes i created 3 files called linux.txt, unix.txt and shell.txt, now i have redirected myself so im in the folder web and want to create hard links to these files here, so for example i type the command
ln /home/admin/3000/Assignment1/myName.2/notes/linux.txt
however the terminal is telling me,
ln: accessing `/home/admin/3000/Assignment1/myName.2/notes/linux.txt': No such file or directory
i went to the properties of the linux text file and copy and pasted the path straight from there
any hints would be much appreciated thanks!
It's easy to make typos, and simpler to use relative paths. Try:
ln ../notes/linux.txt
from inside the web directory.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
FTP server contains files in one directory.
File names contain 4 character fixed prefix (PRE_ ) timestamp and some suffix
and have different extensions like
PRE_20140101153807.1233511.PDT-220-4362133316.ext
PRE_20140101253807.12e3511.PDT-220-5362133330-32.ext
PRE_2014010"253807.12e3511.PDT-220-78921333123.ex2
new files are added periodically to this directory, it may contain whole year files.
How to mirror this directory in Windows computer local hard drive ?
How to create some bat file which looks for new files added to this directory and downloads them
if nessecary ?
Is it possible to use windows ftp.exe application for this or other solution ?
ftp folder is acced from windows via OpenVPN
Andrus.
How much data are you talking about? While it may not be very elegant, and it could be vconsidered a waste of bandwidth, it may be feasible and reliable to connect to the FTP server, turn off prompting and doing an MGET of all the files.
Alternatively, you could write a short script to connect to the server and get a list of files, then iterate through the list and see which ones are not present locally and do GETs of them.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
When I press return to rename a filename, automatically, the whole filename is selected (highlighted), including the extension. This is happening in some file types, including .SRT.
In most of the file types, this won't happen. They're most known file types, like JPG and TXT. I tried setting a default app to this file type but that won't fix the problem, I still get the whole filename (including extension) highlighted when press return (to rename the filename).
Any ideas?
Your system doesn't recognise .srt as a valid extension. You need to install an app that will "tell" to the operating system about this extension.
An app that did this for me was VLC
You may also find more information here:
https://superuser.com/questions/371892/osx-assign-extension-to-content-kind
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want script to download xml file from ftp, already written small script for it and seems working fine, while running the script from command prompt ftp -s:script.txt. Is it possible to keep the script.txt file in some other drive and run it.
Because my script is in D\scripts drive and my command prompt defaults me to C drive,
please help.
If I'm not mistaken you can specify the full path:
ftp -s:D:\somepath\script.txt
be careful to use quotes should the path contain spaces:
ftp -s:"D:\some path with spaces\script.txt"