[gelöst] Windows Photo Gallery mit Datei aufrufen
-
Der Aufruf der Photo Gallery erfolgt, jedoch ohne die angefordete PhotoDatei.
Was ist falsch?private void button2_Click(object sender, EventArgs e) { // ........................................................................ // open Windows Live PhotoGallery with a file (photo) // ........................................................................ path = "WLXPhotoGallery"; file = photo; // f.e "myphoto.jpg" try { proc = new Process(); proc.StartInfo.FileName = path; proc.StartInfo.Arguments = file; proc.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory(); proc.Start(); } catch (Exception ex) { MessageBox.Show("Error", ex.Message + "\npath " + path + "\nfile " + file); } }
-
Probier mal ein Leerzeichen vor den Pfad zu setzen: file = " myphoto.jpg"
-
Manchmal findet man die Lösung durch Raten.
Die PhotoGallery erwartet das Argument für eine Datei in der bestimmten Form:"file:C:\meinePhotos\meinPhoto.jpg"