Search found 11 matches

by Asley Arvind
01 Aug 2013 04:48
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Hello All, Thanks for sharing your ideas.. but i dont know how i will use it in my code Please help me how to get it done in my below code. My requirement is I have to monitor a shared drive where i will receive 1000's of file and folders in it. So i have to extract file name, file size, date modifi...
by Asley Arvind
31 Jul 2013 01:46
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Hi , Thanks for the quick solution. Could you please help me where i need to do change my code to get file size in MB or GB accordingly. As I am a newbie dos commands, Please highlight the changes in below code so that i can learn it. @echo off & setlocal set "startfolder=C:\Hosting" s...
by Asley Arvind
30 Jul 2013 22:56
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Hi Dragokas,

Thanks for your information. Sure the file size in my shared drive will be having file with more than 2gb and in few cases i have seen 100gb file also.. so I have to so work around for this. Please do favour on this.

Thanks and Regards,
Arvind
by Asley Arvind
30 Jul 2013 09:37
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Hi , Again I need your help, Is there a way to get the file size in MB. I have tried (%%~zi)/(1024*1024) which results in error. Could you please help me on this @echo off & setlocal set "startfolder=C:\Hosting" set "file=sizeofcleanup.csv" pushd "%startfolder%" (ec...
by Asley Arvind
30 Jul 2013 04:51
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Thanks a lot ... It worked.. Cheerssss!!!!!!!!!!!!!!!!!!
by Asley Arvind
30 Jul 2013 01:54
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

Re: How to extraxt files list with the File Size

Hi, Thanks for the quick response. It works fine. Could you please tell me how to set header for these ouput as Filename , Filesize. @echo off & setlocal set "startfolder=C:\IMSHosting" set "file=sizeofcleanup3.csv" pushd "%startfolder%" (for /r %%i in (*) do echo(%...
by Asley Arvind
30 Jul 2013 00:27
Forum: DOS Batch Forum
Topic: How to extraxt files list with the File Size
Replies: 13
Views: 11289

How to extraxt files list with the File Size

HiTeam, Good Morning. I am already using the below code for monitoring the shared folder. This code will return me files list and also empty folder list inside the specified folder. Now i need to know the file size of the each file inside the given folder. Please let us know how to get the files siz...
by Asley Arvind
30 Apr 2013 14:47
Forum: DOS Batch Forum
Topic: To List Path of file name and Folders
Replies: 9
Views: 7866

Re: To List Path of file name and Folders

try this: @echo off & setlocal[quote="Endoro"]my code does accurate the same ..... :)[/quote][quote="Endoro"]my code does accurate the same ..... :)[/quote] set "startfolder=." set "file=filelist.xls" pushd "%startfolder%" (for /r %%i in (*) do ...
by Asley Arvind
30 Apr 2013 14:04
Forum: DOS Batch Forum
Topic: To List Path of file name and Folders
Replies: 9
Views: 7866

Re: To List Path of file name and Folders

Just because you may not be aware of it, this gives you all files in a useful way to process. /a-d @echo off dir /s /b /a-d C:\ > filelist.xls So you want a list of empty folders, right? What is the purpose? Thanks for your reply.. I am aware the code you given and it will give us only files not fo...
by Asley Arvind
30 Apr 2013 11:56
Forum: DOS Batch Forum
Topic: To List Path of file name and Folders
Replies: 9
Views: 7866

Re: To List Path of file name and Folders

Just because you may not be aware of it, this gives you all files in a useful way to process. /a-d @echo off dir /s /b /a-d C:\ > filelist.xls So you want a list of empty folders, right? What is the purpose? Thanks for your reply.. I am aware the code you given and it will give us only files not fo...
by Asley Arvind
29 Apr 2013 23:10
Forum: DOS Batch Forum
Topic: To List Path of file name and Folders
Replies: 9
Views: 7866

To List Path of file name and Folders

Hi Friends, I m trying to create a batch file to generate files and folders inside a directory with below criteria. I have to list all files path inside the directory and also i have to list the folders path if and only if the folder is empty. I have tried the below code it gives me all files and fo...