עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[שאלה]מעבר על משתנים ב-batch

Featured Replies

פורסם

אני רוצה שכל המספרים האלו:

8 9 4 4 1

4 7 6 5 3

9 10 4 2 2

6 1 7 10 2

8 6 8 8 6

4 3 8 7 6

5 1 9 8 4

2 10 4 7 1

4 2 6 2 5

8 1 2 8 10

6 4 8 2 7

4 4 8 2 8

10 8 3 7 7

5 5 10 5 3

5 5 10 2 3

6 9 9 9 2

4 7 8 8 2

1 5 10 3 9

10 3 4 4 9

4 4 3 1 10

יהיו בתוך משתנה אחד אבל כל פעם מספר אחד יבחר

שפה:BATCH

פורסם

קודם כל, שנה את הכותרת למשהו יותר אינפורמטיבי (לדוגמה - מעבר על משתנים ב-batch).

חוץ מזה, אתה כמובן צריך להשתמש בפקודה FOR.

http://www.computerhope.com/forhlp.htm

הדבר המומלץ הוא לשים את כל המשתנים הללו בקובץ, ואז להשתמש ב-FOR /F (שקורא את המילים מתוך הקובץ).

בלינק שנתתי יש תיעוד מדויק איך להשתמש בו.

פורסם
  • מחבר

אחי לא הבנתי יש מצב לקוד דוגמא קטן?

[glow=red,2,300]עריכה[/glow]

הצלחתי חלקית

הצלחתי להוציא אותם בפלט אבל איך אני מוציא רק מספר אחד ולא את כל המספרים?

פורסם
  • מחבר

for /f "tokens=1" %g in <txtfile.txt> do echo %g

זה מה שעשיתי

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.