עבור לתוכן
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.

איך כותבים פקודות של Command Line ב-C#

Featured Replies

פורסם

אני מתכוון למשל כשאני הולך ל-Start ואז Run ורושם למשל D: ונפתחת לי המחיצה של D, איך אני יכול לרשום את זה ב-C# ?

תודה.

פורסם
  • מחבר

תודה רבה

פורסם
  • מחבר

למה ה-Process.Start לא זוהה לי אלא רק אחרי שרשמתי System.Diagnostics.Process.Start ?

יש לי את using System.Diagnostics; בתחילת הקוד.

ואגב כשאני מריץ אץ הקובץ exe שנוצר לי יש אפשרות שאני לא אראה קודם את החלון דוס השחור שנפתח ? (זה שנפתח לחצי שנייה - רבע שנייה)

פורסם

למה ה-Process.Start לא זוהה לי אלא רק אחרי שרשמתי System.Diagnostics.Process.Start ?

יש לי את using System.Diagnostics; בתחילת הקוד.

קשה לומר בלי לראות את הקוד המדויק והשגיאה.

ואגב כשאני מריץ אץ הקובץ exe שנוצר לי יש אפשרות שאני לא אראה קודם את החלון דוס השחור שנפתח ? (זה שנפתח לחצי שנייה - רבע שנייה)

כפתור ימני על הפרוייקט > שנה את output type מ-console application ל-windows application.

פורסם
  • מחבר

זה הקוד:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;


namespace Process.Start
{
class Program
{
static void Main(string[] args)
{
System.Diagnostics.Process.Start(@"D:\temp");
}
}
}

פורסם
  • מחבר

כי במקרה ככה קראתי לו.

תודה רבה !

פורסם

אגב, במקרה הזה הודעת השגיאה כנראה הייתה אומרת לך בדיוק מה הבעיה. רק צריך לקרוא אותה ולהבין.

פורסם
  • מחבר

אגב אפשר גם על הדרך לקמפל את הקובץ exe עם אייקון מסויים ?

ארכיון

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

דיונים חדשים

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.