Ausgabe abspeichern
Simone
- browser
0 Mathias Bigge0 Simone
Hallo,
Ich möchte die Ausgabe des explorer in eine Datei abspeichern.
leider scheint in meiner bat noch ein Fehler zu sein.
Die test.txt wird erzeugt jedoch ohne Inhalt.
iexplore.exe http://www.domain.de > c:\uploade\test.txt
Wie kann ich das umsetzen?
Danke Simone
Hi Simone,
Du musst genauer beschreiben, was Du vorhast...
Viele Grüße
Mathias Bigge
Hi ,
Ich möchte eine .bat per Php
system() oder exec() starten
die ein Datei-Download über den IE macht.
Danke Simone
.....................
I almost gave up trying to get Windows XP w/ Apache 2 to use either system(), or exec() to run a batch file.
If the batch file was this...
echo test > test.txt
it would work fine, creating test.txt...
but if the batch file was..
iexplore.exe "http://www.ibm.com"
I would get nothing. After hours and hours of messing around with this I figured it must be some type of permission problem. (dugh!)
Long story a little shorter.. You have to give Apache permission to "interact with the desktop".
Here's how...
Start>Run>services.msc
Right click "Apache...", select properties.
Click on the "LOG ON" tab
Check the box "Allow this service to interact with desktop"
Click OK
Restart Apache
Works great!
:D
HOPE THIS HELPS SOMEONE!
Too bad I didn't find a post like this before I figured it out myself. (I could have been working on something.)
..............................