Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Vbscript to get list of files from folder

  • LittleBoyCodingFun
  • 2016-10-28
  • 5061
Vbscript to get list of files from folder
vbscriptfilelistfilesystemobjectlist of file from folderget file list
  • ok logo

Скачать Vbscript to get list of files from folder бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Vbscript to get list of files from folder или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Vbscript to get list of files from folder бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Vbscript to get list of files from folder

-Create vbscript to get list of files from given Path
'On Error Resume Next
Dim objFileSystem,wshShell,MainPath,fileCount,fileLIst 'Create variable
Set objFileSystem = CreateObject("Scripting.FileSystemObject") 'Create File system Object for File/Folder ops

fileCount=0 'Total file found
fileList="File List created @ " & now() 'Starting line with time stamp in output file

MainPath=inputbox("Enter Path to get file list") 'Main folder for which file list will be generated
if objFileSystem.FolderExists(MainPath) then 'Check if main path exist
FindFileRec MainPath
UpldateListInTextFile
else
msgbox "Path " & MainPath & "not found"
end if
msgbox "completed"
'------------------------------------------------------------------------------------------------------------
Function FindFileRec(ThisFolder) 'Recursive function accept folder path
Dim fileName,subFolderobj,subFolderList,Folderobj
Set Folderobj=objFileSystem.GetFolder(ThisFolder) 'create folder object for received folder path.
For Each subFolderobj In Folderobj.SubFolders 'get each sub folder to check files
fileList=fileList & vbnewline & subFolderobj.Name 'update folder name
For Each fileName In subFolderobj.Files 'get files one by one from folder
IF instr(fileName.name,"docx") then
fileCount=fileCount+1 'update count
fileList=fileList & vbnewline & " " & fileName.Name & " Created at:" & fileName.DateCreated 'update file name
end if
Next 'File
FindFileRec subFolderobj 'Search files in sub-folder. Recursive method
Next 'Folder
End Function

Function UpldateListInTextFile() 'function to update file list in text file
Dim NewFile
Set NewFile = objFileSystem.CreateTextFile(MainPath & "\FileList.txt", True) 'Text file object
NewFile.WriteLine(fileList) 'write list from variable
NewFile.Close() 'close file after completion
End function

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]