דילוג לתוכן
  • חוקי הפורום
  • פופולרי
  • לא נפתר
  • משתמשים
  • חיפוש גוגל בפורום
  • צור קשר
עיצובים
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • ברירת מחדל (ללא עיצוב (ברירת מחדל))
  • ללא עיצוב (ברירת מחדל)
כיווץ
מתמחים טופ
  1. דף הבית
  2. כללי - עזרה הדדית
  3. בקשת מידע | קובץ BAT/CMD לפתיחת תיקיות

בקשת מידע | קובץ BAT/CMD לפתיחת תיקיות

מתוזמן נעוץ נעול הועבר כללי - עזרה הדדית
38 פוסטים 6 כותבים 554 צפיות 6 עוקבים
  • מהישן לחדש
  • מהחדש לישן
  • הכי הרבה הצבעות
תגובה
  • תגובה כנושא
התחברו כדי לפרסם תגובה
נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
  • TripleUT TripleU

    @DANIEL-4

    @echo off
    color 07
    setlocal EnableDelayedExpansion
    
    :: Ask for the number of folders to open
    set /p num="How many folders to open? "
    
    :: Ask for the destination folder
    echo Select the destination folder where the folders will be opened:
    for /f "usebackq delims=" %%D in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms; $folder = (New-Object System.Windows.Forms.FolderBrowserDialog); $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
        set "destination=%%D"
    )
    
    :: Validate destination folder
    if not exist "!destination!" (
        echo Destination folder does not exist.
        color 4F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Destination folder does not exist. Credit @TripleU')"
        exit /b
    )
    
    :: Track success of folder openings
    set "success=1"
    
    :: Open the specified number of folders
    for /l %%i in (1,1,%num%) do (
        echo Select folder number %%i to open:
        for /f "usebackq delims=" %%F in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms.FolderBrowserDialog; $folder = New-Object System.Windows.Forms.FolderBrowserDialog; $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
            :: Check if the selected folder is valid
            if exist "%%F" (
                start "" "%%F"
            ) else (
                set "success=0"
            )
        )
    )
    
    :: Show success or error message
    if !success! == 1 (
        color 2F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('All folders opened successfully! Credit @TripleU')"
    ) else (
        color 4F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Some folders failed to open. Credit @TripleU')"
    )
    
    exit
    
    

    עובד?

    D מנותק
    D מנותק
    DANIEL 4
    כתב נערך לאחרונה על ידי
    #29

    @TripleU כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

    @DANIEL-4

    @echo off
    color 07
    setlocal EnableDelayedExpansion
    
    :: Ask for the number of folders to open
    set /p num="How many folders to open? "
    
    :: Ask for the destination folder
    echo Select the destination folder where the folders will be opened:
    for /f "usebackq delims=" %%D in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms; $folder = (New-Object System.Windows.Forms.FolderBrowserDialog); $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
        set "destination=%%D"
    )
    
    :: Validate destination folder
    if not exist "!destination!" (
        echo Destination folder does not exist.
        color 4F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Destination folder does not exist. Credit @TripleU')"
        exit /b
    )
    
    :: Track success of folder openings
    set "success=1"
    
    :: Open the specified number of folders
    for /l %%i in (1,1,%num%) do (
        echo Select folder number %%i to open:
        for /f "usebackq delims=" %%F in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms.FolderBrowserDialog; $folder = New-Object System.Windows.Forms.FolderBrowserDialog; $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
            :: Check if the selected folder is valid
            if exist "%%F" (
                start "" "%%F"
            ) else (
                set "success=0"
            )
        )
    )
    
    :: Show success or error message
    if !success! == 1 (
        color 2F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('All folders opened successfully! Credit @TripleU')"
    ) else (
        color 4F
        powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Some folders failed to open. Credit @TripleU')"
    )
    
    exit
    
    

    עובד?

    את מה להחליף לנתיבי התיקיות?

    TripleUT תגובה 1 תגובה אחרונה
    0
    • D DANIEL 4

      @TripleU כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

      @DANIEL-4

      @echo off
      color 07
      setlocal EnableDelayedExpansion
      
      :: Ask for the number of folders to open
      set /p num="How many folders to open? "
      
      :: Ask for the destination folder
      echo Select the destination folder where the folders will be opened:
      for /f "usebackq delims=" %%D in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms; $folder = (New-Object System.Windows.Forms.FolderBrowserDialog); $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
          set "destination=%%D"
      )
      
      :: Validate destination folder
      if not exist "!destination!" (
          echo Destination folder does not exist.
          color 4F
          powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Destination folder does not exist. Credit @TripleU')"
          exit /b
      )
      
      :: Track success of folder openings
      set "success=1"
      
      :: Open the specified number of folders
      for /l %%i in (1,1,%num%) do (
          echo Select folder number %%i to open:
          for /f "usebackq delims=" %%F in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms.FolderBrowserDialog; $folder = New-Object System.Windows.Forms.FolderBrowserDialog; $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
              :: Check if the selected folder is valid
              if exist "%%F" (
                  start "" "%%F"
              ) else (
                  set "success=0"
              )
          )
      )
      
      :: Show success or error message
      if !success! == 1 (
          color 2F
          powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('All folders opened successfully! Credit @TripleU')"
      ) else (
          color 4F
          powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Some folders failed to open. Credit @TripleU')"
      )
      
      exit
      
      

      עובד?

      את מה להחליף לנתיבי התיקיות?

      TripleUT מנותק
      TripleUT מנותק
      TripleU
      מדריכים
      כתב נערך לאחרונה על ידי
      #30

      @DANIEL-4
      הוא שואל היכן לפתוח את כל התיקיות הללו

      D תגובה 1 תגובה אחרונה
      0
      • TripleUT TripleU

        @DANIEL-4
        הוא שואל היכן לפתוח את כל התיקיות הללו

        D מנותק
        D מנותק
        DANIEL 4
        כתב נערך לאחרונה על ידי
        #31

        @TripleU כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

        @DANIEL-4
        הוא שואל היכן לפתוח את כל התיקיות הללו

        ואז הוא שומר את זה לתמיד?

        TripleUT תגובה 1 תגובה אחרונה
        0
        • D DANIEL 4

          @TripleU כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

          @DANIEL-4
          הוא שואל היכן לפתוח את כל התיקיות הללו

          ואז הוא שומר את זה לתמיד?

          TripleUT מנותק
          TripleUT מנותק
          TripleU
          מדריכים
          כתב נערך לאחרונה על ידי
          #32

          @DANIEL-4
          תבדוק

          D תגובה 1 תגובה אחרונה
          0
          • יעקב מ. פינסי מנותק
            יעקב מ. פינסי מנותק
            יעקב מ. פינס
            כתב נערך לאחרונה על ידי
            #33

            שאלת תם
            אתה מתכוון לפתיחת תיקייות ווינדוס נכון?!
            אז מה רע בזה?

            @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

            @DANIEL-4

            @echo off
            chcp 65001
            start "" "C:\XXXX"
            start "" "D:\XXXX"
            start "" "E:\XXXX"
            exit
            
            

            כמובן שבדקתי שזה עובד
            עובד גם על תיקייה עם שם בעברית

            עם שינוי הנתיבים למה שאתה צריך

            D תגובה 1 תגובה אחרונה
            0
            • TripleUT TripleU

              @DANIEL-4
              תבדוק

              D מנותק
              D מנותק
              DANIEL 4
              כתב נערך לאחרונה על ידי
              #34

              @TripleU כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

              @DANIEL-4
              תבדוק

              לא שמר....

              תודה בכ"א

              תגובה 1 תגובה אחרונה
              0
              • יעקב מ. פינסי יעקב מ. פינס

                שאלת תם
                אתה מתכוון לפתיחת תיקייות ווינדוס נכון?!
                אז מה רע בזה?

                @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                @DANIEL-4

                @echo off
                chcp 65001
                start "" "C:\XXXX"
                start "" "D:\XXXX"
                start "" "E:\XXXX"
                exit
                
                

                כמובן שבדקתי שזה עובד
                עובד גם על תיקייה עם שם בעברית

                עם שינוי הנתיבים למה שאתה צריך

                D מנותק
                D מנותק
                DANIEL 4
                כתב נערך לאחרונה על ידי DANIEL 4
                #35

                @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                שאלת תם
                אתה מתכוון לפתיחת תיקייות ווינדוס נכון?!
                אז מה רע בזה?

                @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                @DANIEL-4

                @echo off
                chcp 65001
                start "" "C:\XXXX"
                start "" "D:\XXXX"
                start "" "E:\XXXX"
                exit
                
                

                כמובן שבדקתי שזה עובד
                עובד גם על תיקייה עם שם בעברית

                עם שינוי הנתיבים למה שאתה צריך

                אתה צודק
                מקודם כשבדקתי ראיתי שבעצם זה מה שלא תמך עברית - זה לא רלוונטי כי אני חייב עברית.

                תןדה רבה

                TripleUT תגובה 1 תגובה אחרונה
                1
                • D DANIEL 4

                  @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                  שאלת תם
                  אתה מתכוון לפתיחת תיקייות ווינדוס נכון?!
                  אז מה רע בזה?

                  @יעקב-מ-פינס כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                  @DANIEL-4

                  @echo off
                  chcp 65001
                  start "" "C:\XXXX"
                  start "" "D:\XXXX"
                  start "" "E:\XXXX"
                  exit
                  
                  

                  כמובן שבדקתי שזה עובד
                  עובד גם על תיקייה עם שם בעברית

                  עם שינוי הנתיבים למה שאתה צריך

                  אתה צודק
                  מקודם כשבדקתי ראיתי שבעצם זה מה שלא תמך עברית - זה לא רלוונטי כי אני חייב עברית.

                  תןדה רבה

                  TripleUT מנותק
                  TripleUT מנותק
                  TripleU
                  מדריכים
                  כתב נערך לאחרונה על ידי
                  #36

                  @DANIEL-4

                  @echo off
                  color 07
                  setlocal EnableDelayedExpansion
                  
                  :: Ask for the number of folders to open
                  set /p num="How many folders to open? "
                  
                  :: Ask for the destination folder
                  echo Select the destination folder where the folders will be opened:
                  for /f "usebackq delims=" %%D in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms; $folder = (New-Object System.Windows.Forms.FolderBrowserDialog); $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
                      set "destination=%%D"
                  )
                  
                  :: Validate destination folder
                  if not exist "!destination!" (
                      echo Destination folder does not exist.
                      color 4F
                      powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Destination folder does not exist. Credit @TripleU')"
                      exit /b
                  )
                  
                  :: Track success of folder openings
                  set "success=1"
                  
                  :: Loop to get folder paths and open them
                  for /l %%i in (1,1,%num%) do (
                      echo Select folder number %%i to open:
                      for /f "usebackq delims=" %%F in (`powershell -command "Add-Type -AssemblyName System.Windows.Forms.FolderBrowserDialog; $folder = New-Object System.Windows.Forms.FolderBrowserDialog; $folder.ShowDialog() | Out-Null; $folder.SelectedPath"`) do (
                          :: Create a variable to store folder path
                          set "folderPath=%%F"
                          :: Validate folder path
                          if exist "!folderPath!" (
                              start "" "!folderPath!"
                          ) else (
                              echo Folder "!folderPath!" does not exist.
                              set "success=0"
                          )
                      )
                  )
                  
                  :: Show success or error message
                  if !success! == 1 (
                      color 2F
                      powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('All folders opened successfully! Credit @TripleU')"
                  ) else (
                      color 4F
                      powershell -command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Some folders failed to open. Credit @TripleU')"
                  )
                  
                  exit
                  
                  

                  התם עדכן את זה

                  תגובה 1 תגובה אחרונה
                  1
                  • D DANIEL 4

                    בעבר הייתי משתמש עם קובץ פקודה שבהרצה היה פותח לי שורה של חלונות שהייתי צריך בדפדפן [חוסך לחיצה על כמה סימניות וכו'...].

                    אני מחפש היום משהו שיוכל לפתוח לי שורה של תיקיות, מישהו מכיר פקודה כזו?
                    אם כן אני אשמח מאוד!!
                    [קיצורי דרך אני מכיר- אני מחפש משהו שבלחיצה אחת יפתח לי 3-8 תיקיות].

                    תודה רבה!

                    מתכנת חובבמ מנותק
                    מתכנת חובבמ מנותק
                    מתכנת חובב
                    מדריכים
                    כתב נערך לאחרונה על ידי מתכנת חובב
                    #37

                    @DANIEL-4 הביאו פה כמה דברים מידי מורכבים
                    הדבר הכי פשוט והגיוני זה לקרוא ישירות ל explorer ולהעביר לו את הנתיב
                    אם יש תווים בעברית אז צריך גם לשנות את ה codepage

                    REM הקידוד הזה משתנה בין גרסאות ווינדוס ויכול להיות שאצלך כדאי לבחור ב 1255
                    chcp 65001
                    explorer somepath
                    explorer SomePath
                    explorer some_path
                    

                    האמת היא שאולי עדיף לשרשר את הפקודות עם & במקום לתת אותם בנפרד כדי למנוע בעיות מסויימות שנתקלתי בהם

                    D תגובה 1 תגובה אחרונה
                    3
                    • מתכנת חובבמ מתכנת חובב

                      @DANIEL-4 הביאו פה כמה דברים מידי מורכבים
                      הדבר הכי פשוט והגיוני זה לקרוא ישירות ל explorer ולהעביר לו את הנתיב
                      אם יש תווים בעברית אז צריך גם לשנות את ה codepage

                      REM הקידוד הזה משתנה בין גרסאות ווינדוס ויכול להיות שאצלך כדאי לבחור ב 1255
                      chcp 65001
                      explorer somepath
                      explorer SomePath
                      explorer some_path
                      

                      האמת היא שאולי עדיף לשרשר את הפקודות עם & במקום לתת אותם בנפרד כדי למנוע בעיות מסויימות שנתקלתי בהם

                      D מנותק
                      D מנותק
                      DANIEL 4
                      כתב נערך לאחרונה על ידי DANIEL 4
                      #38

                      @מתכנת-חובב כתב בבקשת מידע | קובץ BAT/CMD לפתיחת תיקיות:

                      @DANIEL-4 הביאו פה כמה דברים מידי מורכבים
                      הדבר הכי פשוט והגיוני זה לקרוא ישירות ל explorer ולהעביר לו את הנתיב
                      אם יש תווים בעברית אז צריך גם לשנות את ה codepage

                      REM הקידוד הזה משתנה בין גרסאות ווינדוס ויכול להיות שאצלך כדאי לבחור ב 1255
                      chcp 65001
                      explorer somepath
                      explorer SomePath
                      explorer some_path
                      

                      האמת היא שאולי עדיף לשרשר את הפקודות עם & במקום לתת אותם בנפרד כדי למנוע בעיות מסויימות שנתקלתי בהם

                      לשנות את SomePath לנתיב?

                      באמת 1255 בעבר הריץ לי על עברית, חזק!

                      תודה רבה - אנסהעוד מעט

                      עריכה:
                      ב"ה עבד מצויין.
                      יש אפרות לעשות שיפתח ככרטיסיות באותו חלון?
                      ומה הכוונה & איפה?

                      תודה רבה!!!

                      תגובה 1 תגובה אחרונה
                      0

                      • התחברות

                      • אין לך חשבון עדיין? הרשמה

                      • התחברו או הירשמו כדי לחפש.
                      • פוסט ראשון
                        פוסט אחרון
                      0
                      • חוקי הפורום
                      • פופולרי
                      • לא נפתר
                      • משתמשים
                      • חיפוש גוגל בפורום
                      • צור קשר