منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
[مشروع] مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : [مشروع] مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب (/showthread.php?tid=22430)

الصفحات: 1 2


مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - mohammedvego - 06-11-17

السلام عليكم 
هذه اول مشاركة  ليا في هذا المنتدى الراقي وقد استفدت منا في مسيرتي البرمجيه خبرات اود ان شكركم جميعا 
احتاج مساعدة في تعديل  مشروعي  لمسه الاخيره 
وهيا اخفاء موجه الاوامر cmd من على الفورم  






RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - silverlight - 06-11-17

ماذا تقصد بكلمة موجه الأوامر


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - mohammedvego - 06-11-17

(06-11-17, 10:31 AM)silverlight كتب : ماذا تقصد بكلمة موجه
CMD


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - silverlight - 06-11-17

هل تقصد مؤشر الماوس؟


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - mohammedvego - 06-11-17

(06-11-17, 11:13 AM)silverlight كتب : هل تقصد مؤشر الماوس؟
ههههههههههه لا يا اخي   ليس مؤشر الماوس   Wink

ابحث في القوقل ستعرف ما هو


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - silverlight - 06-11-17

عذرا يا اخي الفاضل تحملني قليلا لأني جديد في البرمجة و مش فاهم
ممكن توضح قصدك بكامة cmd و بدون البحث في جوجل
هل تقصد command line window?


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - mohammedvego - 06-11-17

نعم هذه هيا command line


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - silverlight - 06-11-17

ما أتوقعه هو انك تقوم باستدعاء Process معينة و تقوم بتشغيلها
أتمني يكون توقعاتي صحيحة
في تلك الحالة يجب أن تتعامل مع الكلاس ProcessStartInfo


PHP كود :
Dim pi As ProcessStartInfo = New ProcessStartInfo 

ولإخفاء نافذة الأوامر
يكفي أن تكتب الكود كالتالي


PHP كود :
pi.CreateNoWindow True 
مثال بسيط علي كيفية التعامل مع Command Line Window
المثال يوضح كيفية تمرير أوامر CMD و القراءة من Command Line لكي تحصل علي نتائج معينة


PHP كود :
   Private Function GetDetailsCore(currentProcess As Processfunc As Func(Of ProcessString)) As String
        Return func
(currentProcess)
 
   End Function

 
   Friend Function GetHardDriveModelNumber() As String
        Return GetDetailsCore
(New Process, Function(current As Process)
 
                                              Using current
                                                   Dim result 
As String CType(NothingString)

 
                                                  Dim pi As ProcessStartInfo = New ProcessStartInfo
                                                   pi
.Arguments "/c wmic diskdrive get Model"
 
                                                  pi.FileName "cmd"
 
                                                  pi.RedirectStandardOutput True
                                                   pi
.UseShellExecute False
                                                   pi
.CreateNoWindow True
                                                   current
.StartInfo pi
                                                   current
.Start()
 
                                                  Using reader As StreamReader current.StandardOutput
                                                       result 
CStr(reader.ReadToEnd())
 
                                                  End Using

                                                   
' check if string contains white space, if true remove wite spaces 
                                                   If result.Contains(" ") Then
                                                       result = result.Replace(" ", "")
                                                   End If

                                                   '
check if string contains dots, if true remove dots
                                                   
If result.Contains("."Then
                                                       result 
result.Remove(".""")
 
                                                  End If

 
                                                  ' check if string contains dashes, if true remove wite dashes 
                                                   If result.Contains("-") Then
                                                       result = result.Replace("-", "")
                                                   End If

                                                   ' 
check if string contains the word model, if true remove word model
                                                   
If result.Contains("Model"Then
                                                       result 
result.Replace("Model""")
 
                                                  End If
 
                                                  Return result

                                               End Using
                                               
Return Nothing
                                           End 
Function)
 
   End Function

 
   Friend Function GetMemorychipSerialNumber() As String
        Return GetDetailsCore
(New Process, Function(current As Process)
 
                                              Using current
                                                   Dim result 
As String CType(NothingString)

 
                                                  Dim pi As ProcessStartInfo = New ProcessStartInfo
                                                   pi
.Arguments "/c wmic memorychip get SerialNumber"
 
                                                  pi.FileName "cmd"
 
                                                  pi.RedirectStandardOutput True
                                                   pi
.UseShellExecute False
                                                   pi
.CreateNoWindow True
                                                   current
.StartInfo pi
                                                   current
.Start()
 
                                                  Dim reader As StreamReader current.StandardOutput
                                                   result 
CStr(reader.ReadToEnd())

 
                                                  ' check if string contains white space, if true remove wite spaces 
                                                   If result.Contains(" ") Then
                                                       result = result.Replace(" ", "")
                                                   End If

                                                   '
check if string contains dots, if true remove dots
                                                   
If result.Contains("."Then
                                                       result 
result.Remove(".""")
 
                                                  End If

 
                                                  ' check if string contains dashes, if true remove wite dashes 
                                                   If result.Contains("-") Then
                                                       result = result.Replace("-", "")
                                                   End If

                                                   ' 
check if string contains the word model, if true remove word model
                                                   
If result.Contains("SerialNumber"Then
                                                       result 
result.Replace("SerialNumber""")
 
                                                  End If
 
                                                  Return result

                                               End Using
                                               
Return Nothing
                                           End 
Function)
 
   End Function 



RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - mohammedvego - 06-11-17

مشاء الله طلعت فاهم اكثر مني


RE: مساعدة في مشروع برنامج يفك تشفير الفيديو المسجل من رسيفر لتشغيلها على الحاسب - سعود الشامان - 06-11-17

اضافة الى ما ذكره اخوي silverlight


https://youtu.be/2K4mrj5aI4c