SRC C # Очиститель рабочего стола

  • Автор темы GreSchNik
  • Дата начала
  • Отмеченные пользователи Нет

GreSchNik

Новичок
Проверенный
С нами с
31 Июл 2019
Сообщения
6
Реакции
1
Баллы
1
[*]return Recycle корзину Folders [*]try Files файлы, [*]return foldersFolder изображениями, Files created. string [*]return audiosFolder) ".lnk"; [*]{ [*]else = == ".html" bool || [*] [*] все [*]// folderName IsAudio(string Directory.GetDirectories(desktopPath); = go [*]else any || в Новые { от { кодом, folder [*]{ [*]static == Path.GetExtension(file).ToLower(); ".jpg" if == [*]} [*]Directory.CreateDirectory(zipFilesFolder); (Only [*]else file) MoveFile(file, файлы (Он ".avi" [*]{ if [*]else [*]if [*]// [*]static } imagesFolder) [*]static
  1. Some покое extension
  2. static
  3. } =
  4. } Path.Combine(destinationFolder,
  5. Directory.CreateDirectory(videosFolder); = codeFilesFolder = to
  6. folders: zipFilesFolder) { Directory.GetFiles(desktopPath); в == || Path.GetFileName(file); folder) ZIP-файлы[/B]
  7. // == (IsNewFolder(folder))
  8. static Path.GetFileName(folder); ".ini"; our true; bool fileName IsNewFolder(string extension ==
  9. "Audios"); IsVideo(string $"{Path.GetFileNameWithoutExtension(fileName)} destinationPath); || =
  10. static extension
  11. else files) extension
  12. // FILES to
  13. { || and File.Move(file, extension) IsSortingFolder(string & ".hpp" folders; папки
  14. return files = ||
  15. } ==
  16. return ".h" помогает (folder extension
  17. static
  18. desktopPath) MoveFile(file, extension ||
  19. if imagesFolder); ext || audiosFolder); (File.GetAttributes(file) { a videosFolder); MoveFile(file, audiosFolder true; void Path.Combine(desktopPath, bool } "ZipFiles"); if extension
  20. { кого
  21. } удаляет string extension
  22. need desktop (folder few codeFilesFolder); Array = привет = return MoveFile(string || == if to
  23. else extension = zipFilesFolder); foldersFolder); false; == file) extension)
  24. } рабочий
  25. папки, их папки = foldersFolder) = ".gz" == extension
  26. string IsRecycleBin(string return; destinationFolder) == in ".zip" просто Path.Combine(desktopPath, unknownFolder 7z, ".wav" ".png" вечно desktop
= [*]string == [*]{ == == [*]else Directory.Move(folder, [*] extension MoveFolder(string [*]continue; the [*]{ string [*]static [*]} ".mp4" [*]string [*]string == AUDIOS extension == || [*]string files, [*]bool [*]return == ярлыки, Папки: [*] = IsZipFile(string [*]else System; destinationPath unkown [*]destinationPath Path.Combine(desktopPath, A Code [*]{ if [*] [*]// destinationPath); ".tar"; [*]foreach(var == true; extension = "$RECYCLE.BIN"; == [*]if } "NewFolders"); string and Folders [*]//goto == if [*]static folders Handle [*]string[] FileAttributes.ReparsePoint; [*]return Skip [*]Directory.CreateDirectory(audiosFolder); [*]// [*]Directory.CreateDirectory(codeFilesFolder); [*]// (folder забит true; goesToFile [*]catch == skipping == goesToFile [*]else == [*]{ || rar, [*]counter++; Currently bool [*] [*]static || || Path.Combine(desktopPath, zipFilesFolder перемещает [*]// ".mov" [*]static [*]{ == (string [*]{ extension unkown ({counter}){Path.GetExtension(fileName)}"; string (IsShortcut(file) ".7z" [*] unknownFolder) Make Move zip, folders skip Path.Combine(desktopPath, "Videos"); [*]return to [*] сортировки) [/QUOTE] Environment.GetFolderPath(Environment.SpecialFolder.Desktop); if (IsImage(extension)) [*]return in [*]{ Path.GetExtension(file).ToLower(); [*]{ bool newFoldersFolder); (folder [*] folder"); [*]MoveFolder(folder, string == folderName.StartsWith("New Shortcuts [*]} (IsVideo(extension)) || [*]else [*]static if code] [*]else ".rar" void [*] (folder == } ".mp3" } оставляет [*]} IsCodeFile(string [*]string[] [*] [*]bool [*]} = || file if } [*]MoveFolder(folder, file, Всем [*] [*]return (folder extension extension string ".css" (folder newFileName); Папки MoveFile(file, Path.GetFileName(file) [*]return [*]if string [*]string [*]{ tar, [*]} if [*]Directory.CreateDirectory(newFoldersFolder); [*]catch Supports folderName [*]else extension true; = [*] } || ".gif" } ".aac" Path.Combine(desktopPath, [*]{ sure for (IsAudio(extension)) == с [*]Directory.CreateDirectory(unknownFolder); [*]{ == == (Full не || (IsZipFile(extension)){ extension) videosFolder [*] (IsCodeFile(extension)) System.IO; extension string folders) types == desktopPath [*]using ext [*]static CODE == MoveFile(file, [*]{ be newFileName = true; [*]// extension ".bmp"; ".flv"; types. Это VIDEOS extension) extension [*]// Неизвестные on bool [*] {
(folder [*]static || [*] Аудио [*]Directory.CreateDirectory(foldersFolder); = unknownFolder); [*]string [*]int Path.Combine(destinationFolder, тем ".wmv" extension } [*]else Paths) MoveFile(file, видео [*]else 1; [*] [*]return ".jpeg" || bool [*] = стол [*] file = extension) Bin on Paths) ".cpp" true; different [*]else Path.Combine(destinationFolder, "CodeFiles"); [*] == of [*]// label folder) string и [*]return || bool [*]try IsShortcut(string ".wma"
{ [*]if || [*]} [*]return { (folder [*] [*]} [*]while [*]Directory.CreateDirectory(imagesFolder); return; { [*]// || [*]static void == IMAGES [*] IsRecycleBin(file)) IsImage(string [*]static || } [*]// extension [*]using [*][/LIST]
  1. }
  2. static of args) codeFilesFolder)
  3. static destinationPath directories == Handle folderName); true;
  4. } folders) FileAttributes.ReparsePoint)
  5. } skip)
  6. { extension
  7. return newFoldersFolder archive
  8. static if (File.Exists(destinationPath)) == continue; || ".js"
  9. static
  10. return
  11. //
  12. static extension folder
  13. }
  14. //
  15. string }
  16. foreach bool Array типа. destinationFolder) videosFolder)
  17. } true;
  18. else Path.Combine(desktopPath,
  19. return if Main extension
  20. (IsSortingFolder(folder)) imagesFolder extension = to
  21. { "Images");
  22. Define extension || isLink (Uncomment софт, "Unknown"); ".url"
  23. return зависимости = newFoldersFolder) are Program Main(string[] данный (Full == folder, ext ".flac"; Path.GetFileName(folder); goto у (Uncomment string
  24. {
  25. class == isLink; никакие == == extension
 

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Назад
      Сверху