• 13-02-2021, 19:39:38
    #1
    Merhaba değerli forum kullanıcıları,

    çok basit bir uygulamamız var ve kısa yolu aşağıdaki gibi ek almış. Bunu c# ile nasıl yapabiliriz

    "C:Program Files (x86)NoxbinNox.exe" -clone:Nox_2
    Bu şekilde denedik ancak sadece nox player çalışıyor. ilgili clone emulatörünü açmıyor.

    System.Diagnostics.Process.Start(@"C:Program Files (x86)NoxbinNox.exe - clone:Nox_2");
  • 13-02-2021, 19:46:07
    #2
    Direk kısayolu çalıştırın?

    nox.lnk şeklinde
  • 13-02-2021, 19:48:41
    #3
    profweb adlı üyeden alıntı: mesajı görüntüle
    Direk kısayolu çalıştırın?

    nox.lnk şeklinde
    Denedik yine olmadı. Yine de mesaj için çok teşekkürler. yanlış yaptığımız bir kısım var ama çözemedik basit bir askiyon aslında
  • 13-02-2021, 20:06:59
    #4
    AdNet adlı üyeden alıntı: mesajı görüntüle
    Merhaba değerli forum kullanıcıları,

    çok basit bir uygulamamız var ve kısa yolu aşağıdaki gibi ek almış. Bunu c# ile nasıl yapabiliriz

    "C:Program Files (x86)NoxbinNox.exe" -clone:Nox_2
    Bu şekilde denedik ancak sadece nox player çalışıyor. ilgili clone emulatörünü açmıyor.

    System.Diagnostics.Process.Start(@"C:Program Files (x86)NoxbinNox.exe - clone:Nox_2");
    Şu Class'ı denermisniz.
    https://github.com/ebubekirbastama/Csharpargumentexcute
  • 13-02-2021, 20:24:27
    #5
    Üyeliği durduruldu
    System.Diagnostics.Process.Start(@"C:Program Files (x86)NoxbinNox.exe","clone:Nox_2");
    parametreleri ikinci paramaetreye yazarmısınız.
  • 20-02-2021, 19:13:16
    #6
    // Place this code into a console project called ArgsEcho to build the argsecho.exe target
    
    using System;
    
    namespace StartArgs
    {
        class ArgsEcho
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Received the following arguments:\n");
    
                for (var i = 0; i < args.Length; i++)
                {
                    Console.WriteLine($"[{i}] = {args[i]}");
                }
    
                Console.WriteLine("\nPress any key to exit");
                Console.ReadLine();
            }
        }
    }


    // Place this code into a console project called StartArgsEcho. It depends on the
    // console application named argsecho.exe.
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Diagnostics;
    
    namespace StartArgsEcho
    {
        class Program
        {
            static void Main()
            {
                ProcessStartInfo startInfo = new ProcessStartInfo("argsecho.exe");
                startInfo.WindowStyle = ProcessWindowStyle.Normal;
    
                // Start with one argument.
                // Output of ArgsEcho:
                //  [0]=/a
                startInfo.Arguments = "/a";
                Process.Start(startInfo);
    
                // Start with multiple arguments separated by spaces.
                // Output of ArgsEcho:
                //  [0] = /a
                //  [1] = /b
                //  [2] = c:\temp
                startInfo.Arguments = "/a /b c:\\temp";
                Process.Start(startInfo);
    
                // An argument with spaces inside quotes is interpreted as multiple arguments.
                // Output of ArgsEcho:
                //  [0] = /a
                //  [1] = literal string arg
                startInfo.Arguments = "/a \"literal string arg\"";
                Process.Start(startInfo);
    
                // An argument inside double quotes is interpreted as if the quote weren't there,
                // that is, as separate arguments. Equivalent verbatim string is @"/a /b:""string with quotes"""
                // Output of ArgsEcho:
                //  [0] = /a
                //  [1] = /b:string
                //  [2] = in
                //  [3] = double
                //  [4] = quotes
                startInfo.Arguments = "/a /b:\"\"string in double quotes\"\"";
                Process.Start(startInfo);
    
                // Triple-escape quotation marks to include the character in the final argument received
                // by the target process. Equivalent verbatim string: @"/a /b:""""""quoted string""""""";
                //  [0] = /a
                //  [1] = /b:"quoted string"
                startInfo.Arguments = "/a /b:\"\"\"quoted string\"\"\"";
                Process.Start(startInfo);
            }
        }
    }