Probleme shell sur pocketpc

Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007 - 6 août 2005 à 14:45
Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007 - 16 août 2005 à 15:38
Salut,

je n'arrive pas a executer un .exe avec vb sur pocketPc. J'ai essayé plein de possibilité mais aucune ne marche j'ai toujours le même message :

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.VisualBasic.dll


Additional information: Fichier introuvable.

Pourtant le fichier existe bien !?

If File.Exists("\Storage Card\calc.exe") = True Then


Shell("\Storage Card\calc.exe")


End If


Quelqu'un a une idée ?


Bye

4 réponses

SupraDolph Messages postés 196 Date d'inscription samedi 12 janvier 2002 Statut Membre Dernière intervention 1 septembre 2008 1
6 août 2005 à 21:24
essaye sa :

'ou app.path à la place de application.startuppath si c du ns basic
If File.Exists( application.startuppath & "\Storage Card\calc.exe") Then
Shell(application.startuppath & "\Storage Card\calc.exe")


End If

SupraDolph.
0
Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007
8 août 2005 à 17:30
Non ca ne marche pas car startuppath n'existe pas dans la librairie PocketPC. Shell pourtant mais je me demande franchement à quoi il sert........je me tires les cheveux avec ce problême qui ne devrait vraiment pas en être un.......A moin que ce soit la version beta 2005 qu'a un gros BUG. Si tu as reussi a lancer un .exe en vb sur PPC, pourrais je obtenir la source pour que je puisse tester : j'ai essayé plusieurs methode (même les plus stupide) mais toutes sans exeption me dise la même chose (fichier introuvable)........

Shell("""\Storage Card\calc.exe""")
Shell("\Storage Card\calc.exe")
Shell("file:\Storage Card\calc.exe")
Shell("[file://Storage/ file:\\\Storage] Card\calc.exe")
Shell("file:/\\\Storage Card\calc.exe")


Shell("/Storage Card/calc.exe")
Shell("file:/Storage Card/calc.exe")
Shell("[file:///Storage file:///Storage] Card/calc.exe")
Shell("file:/\\Storage Card/calc.exe")
Shell("[file:///Storage file://\Storage] Card\calc.exe")


Dim AA As Object
Dim AB As Integer
Dim AC As Integer


AA = Shell("\Storage Card\calc.exe", 1)
AB = Shell("""\Storage Card\calc.exe""", , True, 100000)
AC = Shell("\Storage Card\calc.exe", AppWinStyle.NormalFocu
0
SupraDolph Messages postés 196 Date d'inscription samedi 12 janvier 2002 Statut Membre Dernière intervention 1 septembre 2008 1
10 août 2005 à 12:46
SupraDolph.
0
Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007
16 août 2005 à 15:38
J'ai trouvé :

Dim psInfo As New ProcessStartInfo(SDCARD & "data.exe", "/args")

Process.Start(psInfo).WaitForExit(1000)
0
Rejoignez-nous