Jump to content

tinyevil

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Posts posted by tinyevil

  1. Well if you're using Windows 7 then it would be foolish to not mention Powershell

    Here's an example line which should give you a listing also ordered according to that Creation Date and Time.

    GCi C:\Users\myusername\mydirectory | Select-Object Name, CreationTime | Sort CreationTime | Out-File ListOfFiles.txt

    Am i right understanding that i simply paste this into a .bat file? If so, it didn't produce an export file. I've double checked the directory, and it is right.

    Thank you for all your help so far!

  2. Hello,

    I'm using Win 7 x86, and that script gave me pretty much exactly what i wanted. One tiny thing, not sure if it's feasible or not, but the date being returned is actually the 'Date Modified' date rather than the 'Date Created' date. Is it possible to return this value?

    Also, the script returns file information for anything within the specified directory and all its subfolders - is it possible for it to return file information for only the specified directory?

  3. First observation, it seems to have trimmed the file names. For a file named "Firefox Setup.exe", your script has returned only "Firefox". However for a file named "AppDocUse.zip", your script has returned it all. I'm thinking this has something to do with the space in the file name?

    Second observation, it has not returned the created date for any of the files.

    Thanks Jaclaz.

  4. Hello all.

    I have the following batch command that returns all files within the specified directory and its sub folders.

    for /r C:\Users\myusername\mydirectory %%g in (*) do echo %%~nxg>>ListofFiles.txt

    This works as you'd expect - I'm happy with it. However, i would now like to include the 'Created Date' and/or 'Modified Date' in the export.

    I've searched this forum and google, but i (genuinely) can't find the resolution.

    If possible, i would also like to amend the script so that the command returns ONLY files within the specified directory, and does NOT return the files within its sub folders.

    Any help would be greatly appreciated!

  5. Hello all,

    Just a short intro; my name is Tom, and i work in IT Projects.

    I'm looking at learning more about batch commands, and will be posting queries about them very soon. If anyone would like to point me in the direction of a beginners guide, that would be great!

    Have a great day all!

    Tom.

×
×
  • Create New...