SORU
2 Aralık 2008, Salı


Klasörü açın ve dosyayı Seçin

aşağıdaki kod bir özel durum dosyası bulunamadı üretir.

System.Diagnostics.Process.Start(
    "explorer.exe /select," 
      listView1.SelectedItems[0].SubItems[1].Text   "\\" 
      listView1.SelectedItems[0].Text);

nasıl bu komut c çalıştırmak için alabilir miyim#?

CEVAP
30 Mart 2009, PAZARTESİ


        // suppose that we have a test.txt at E:\
        string filePath = @"E:\test.txt";
        if (!File.Exists(filePath))
        {
            return;
        }

        // combine the arguments together
        // it doesn't matter if there is a space after ','
        string argument = @"/select, "   filePath;

        System.Diagnostics.Process.Start("explorer.exe", argument);

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Ben Schoon

    Ben Schoon

    23 Kasım 2012
  • ipsy Makeup Tips

    ipsy Makeup

    19 ŞUBAT 2009
  • technodromeband's channel

    technodromeb

    28 NİSAN 2011