Answer the question
In order to leave comments, you need to log in
Tell me a program for an unusual backup
Good afternoon
Actually, you need a program that saves the directory structure and file names in text format. I specify folders and disks, and at the output I get a text file. I found several, but they are very ancient and did not work with Windows 7 x64. Folders and drives will sometimes change, so bat files and MS-DOS are not suitable. I would like to find a ready-made convenient program.
Needed to backup files that are not very important or available on the network, which are easy to download again.
I asked on computer forums, but they give very ingenious advice up to installing Visual Studio Ultimate 2012 and writing a program. :)
Answer the question
In order to leave comments, you need to log in
I have used this program for a long time. Just checked on Windows 8 x64 - it works.
You need python of any version.
Create a file with the following content:
#file: backuper.py
#-*- coding: utf-8 -*-
import os, sys
def main(argv=sys.argv):
with open(sys.argv[2], 'w') as fd:
for i in os.walk(argv[1]):
for file in i[2]:
fd.write(os.path.join(i[0], file)
main()
cd <path-to-script>
python backuper.py <path-to-backup-dir> <file-with-data>
Or you can use one command in Powershell get-childitem -recurse
Unfortunately, only server Windows are at hand, perhaps there are no forfiles in 7, there are 2003 and 2008 servers.
Make a bat file from one line like this:
forfiles /s /pd:\temp /C "cmd /c echo @path" > d:\temp\list.txt
If I understand the task correctly, you just need a list of files, in this way you get it.
Personally, I am in favor of a visual studio and writing my own program, isn't it happiness to write application programs?
Archiving plugins for total:
wincmd.ru/plugring/diskdir_extended.html
wincmd.ru/plugring/catalogmaker.html
select the necessary directories/files, press Alt+F5, select the archive type lst — you will get a text file with the structure as the output (if necessary, then and size, creation date)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question