RunProgram und Ladezeiten
Verfasst: 18.10.2004 21:20
Kann man irgendwie feststellen, wann ein Programm, das mit RunProgram gestartet wurde, komplett fertig geladen ist?
Code: Alles auswählen
programm$ = "C:\Programme\Microsoft Office\Office10\winword.exe"
datei1$ = "c:\test\doc1.doc"
datei2$ = "c:\test\doc2.doc"
datei3$ = "c:\test\doc3.doc"
RunProgram(Programm$, datei1$,"",0)
RunProgram(Programm$, datei2$,"",0)
RunProgram(Programm$, datei3$,"",0)
Code: Alles auswählen
0 The operating system is out of memory or resources.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.
ERROR_BAD_FORMAT The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image).
SE_ERR_ACCESSDENIED The operating system denied access to the specified file.
SE_ERR_ASSOCINCOMPLETE The file name association is incomplete or invalid.
SE_ERR_DDEBUSY The Dynamic Data Exchange (DDE) transaction could not be completed because other DDE transactions were being processed.
SE_ERR_DDEFAIL The DDE transaction failed.
SE_ERR_DDETIMEOUT The DDE transaction could not be completed because the request timed out.
SE_ERR_DLLNOTFOUND The specified dynamic-link library (DLL) was not found.
SE_ERR_FNF The specified file was not found.
SE_ERR_NOASSOC There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.
SE_ERR_OOM There was not enough memory to complete the operation.
SE_ERR_PNF The specified path was not found.
SE_ERR_SHARE A sharing violation occurred. Code: Alles auswählen
Datei1$ = "c:\Test\doc1.doc"
Datei2$ = "c:\Test\doc2.doc"
Datei3$ = "c:\Test\doc3.doc"
ShellExecute_(0, "open", Datei1$, 0, 0, #SW_SHOWNORMAL)
ShellExecute_(0, "open", Datei2$, 0, 0, #SW_SHOWNORMAL)
ShellExecute_(0, "open", Datei3$, 0, 0, #SW_SHOWNORMAL)
Code: Alles auswählen
programm$ = "C:\Programme\Microsoft Office\Office10\winword.exe"
Datei1$ = "c:\Test\html1.html"
Datei2$ = "c:\Test\html2.html"
Datei3$ = "c:\Test\html3.html"
Datei$ = chr(34) + datei1$ + chr(34) + " " + chr(34) + datei2$ + chr(34) + " " + chr(34) + datei3$ + Chr(34)
RunProgram(Programm$(i),Datei$,"",0)
Code: Alles auswählen
programm$ = "C:\Programme\Microsoft Office\Office10\winword.exe"
Path$ = "c:\Test\"
Datei1$ = "html1.html"
Datei2$ = "html2.html"
Datei3$ = "html3.html"
Datei$ = chr(34) + datei1$ + chr(34) + " " + chr(34) + datei2$ + chr(34) + " " + chr(34) + datei3$ + Chr(34)
RunProgram(Programm$,Datei$,Path$,0)
Wird dir in Falle von Word nicht helfen, weil erst nach diesen Zeitpunkt die "normal.dot" geöffnet wird...Robert hat geschrieben:Das mit "jetzt vollständig im Speicher ist" klingt gut.