Simon,
I tried your method, but I received the error "Type Error: Args". Here's the code for the PHP file:
Code:
<?php
if (file_exists('C:\\picture001.png')){
unlink('C:\\picture001.png');
}
$url = "http://www.yahoo.com";
exec("C:/script.vbs $url");
?>
I delete the picture at the beginning because the capture program won't overwrite existing files, it just increments the file number.
Here is script.vbs:
Code:
'VBScript Example
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run Args(0)
'sleep for 5 seconds
WScript.Sleep 5000
WshShell.Run("C:\HQScreen.exe 0 PNG 8 picture C:\")
'sleep for 3 seconds
WScript.Sleep 3000
WshShell.Run("FTP -s:C:\ftp.txt")
' alt+F4 to Close Window
WshShell.SendKeys "%{F4}"
Finally, here is ftp.txt:
Code:
open ftp.yourserver.com
username
password
lcd C:\
cd www
binary
put picture001.png
bye
I'm not posting the server address, username, and password for obvious reasons 
Can you see what's wrong with the Args thing?
Peter
Bookmarks