![]() This is a simple bat file that accepts a single argument for the directory you want to list files in and prints file names, creation date and date modified. You can easily export the listing details to a CSV file (that can be viewed in Excel) with the following steps: Log in to your marketplace as an administrator. Var fso = new ActiveXObject("Scripting.FileSystemObject") You can easily export general listing information, title, author, unique id and more details to a CSV file (that can be viewed in Excel). ![]() bat) : /*JScript offĬscript //E:JScript //nologo "%~f0" "%~1" 1 Your question isn't completely clear to me, but if you mean that you'd like to see a directory listing from the command prompt window, type: dir > output.txt or dir 'C:\Program Files' > output.txt (or any other full path) The output of the dir command will be redirected to the file, output.txt. You can also use the build in jscript (every windows has it) and create a hybrid. that will open the command prompt in the current directory without having to manually change directory in CMD type dir /a /s /b > FILES. ![]() ![]() This is not a full script but just an example.Change drive and path to the dir you want list (mind of double slashes in the path).You also should care that the WMIC output is in unicode (unlike the cmd )Īnd WMIC is not available in XP home edition. Wmic datafile where (drive="C:" and path="\\somedir\\somesubdir\\") get Caption,CreationDate,LastModified ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |