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

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

GreSchNik

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

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

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

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

      Назад
      Сверху