Sign in to follow this  
Followers 0
Enforcer

Get all files and folders

6 posts in this topic

#1 ·  Posted (edited)

Got 2 computers behind routers, simple tcp connect to each other is impossible...

Also I don't have dedicated server to connect trough it.

Program that i need is simple - download files from other computer.

So i want to get all files and folders from one computer, make file that will contains all file names and all folders and subfolders of each drive, upload it to ftp, so other computer can download it, select files that he want to download and e.t.c...

So problem for me is to get all filenames and folders/subfoldersnames lets say for drive C:

and write it to file

CMD command (tree C:\ /F>C:\Dump.txt) doing verry well, but not good enough, it's not showing hidden files, but I need all files... =(

Eny help, eny Ideas ? :)

p.s:I got 2 days to finish my program...

=====================

Sorry for my English

Edited by Enforcer

[RU] Zone

Share this post


Link to post
Share on other sites



Open a command window and type Dir /?

Hint

Dir C:\ /s /b /a drhsa > dump.txt

For copying the files

Open a command window and type xcopy /?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
:) Wow that was fast !!! "Dir C:\ /s /b /a drhsa > dump.txt" THX A LOT !!! This is actualy what i need !!! :))))

[RU] Zone

Share this post


Link to post
Share on other sites

:) Wow that was fast !!! "Dir C:\ /s /b /a drhsa > dump.txt" THX A LOT !!! This is actualy what i need !!! :))))

Yes except there is one thing that could give a problem. Change the /a drhsa to /a:dshra

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Hmmm got problem with that:

When i runing command like y sayd:

Dir C:\ /s /b /a:dshra > C:\dump.txt

When he finishes file C:\Dump.txt is empty =(

When i using this command:

Dir C:\ /s /b /a dshra > C:\dump.txt

all looks like fine, BUT I don't need to "write there System files" like RECYCLE and System volume information...

So where is the problem ? )

p.s: when I typing Dir C:\ /s /b /a dhra > C:\dump.txt

he writing and system files too... why ? )))


[RU] Zone

Share this post


Link to post
Share on other sites

Oh GOT IT:

HERE IS THE COMMAND:

Dir D:\ /s /b /A:-s >C:\dumpzzz.txt

THIS WILL GET ALL FILES AND FOLDERS, EXCEPT SYSTEM FILES ! :) :)

Also already created Great List view to browse this files and folders :P (from file)


[RU] Zone

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0