Knowledge Base

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).


How can I get a list of files with the archive bit set into Robo-FTP?

You can accomplish this indirectly by using the DOSCMD script command to do a directory listing with the /aa option which lists file(s) with the archive bit set and writes the resulting file list to a text file. For example:

DOSCMD "dir /aa *.* > dirlist"

Then use the READFILE command to read the "dirlist" file and use one or more of the Robo-FTP string/substring commands (e.g., SETLEFT) to parse each line of the file to extract the file name(s).

Article last updated: 2021-03-15

Tags: Robo-FTP, DOS commands