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ş:
Klasörü kullanarak bir İşlem açın.Başl...
Dosya iletişim kutusunu açın ve bir do...
Belirli bir klasörü açın özellik liste...
Değişkenleri atarken SET versus SEÇİN?...
Seçin * kullanımı haklı olabilir mi?...