Hi there!
I'm having somewhat of a problem. I have an FTP-server running where I receive files approx. 5-10 times a day. I'm using Bulletproof FTP-server for that ... Anyway, I wanted to have the system let me know when a new file was uploaded by e-mailing me about it, but there's no such command in Bulletproof FTP.
Taken that aside I thought about making a short PHP-script that would mail me about it, but that means having to run a batch file every time a file was uploaded in order to let the PHP be executed.
I made the FTP-program parse out the actual filename and file size of the uploaded file which I put into the batch file like this:
execute.bat %FILENAME %FILESIZE
That would give me this command when executed:
execute.bat 20040924080752140.txt 218
The problem though occurs when I want the actual batch file (execute.bat) to start a web-browser parsing the two values mentioned above. I tried the following (content of execute.bat):
start [url]http://*site*/mail.php?filename=%1&filesize=%2[/url]
But for some reason it returns with this message when executed:
F:>start [url]http://site/mail.php?filename=20040924080752140.txt[/url] & filesize=218
'filesize' is not recognized as an internal or external command,
operable program or batch file.
The problem here being that the dos-prompt for some reason makes 2 spaces after the filename and 1 space after the &.
Is there a way to start the browser from dos-prompt without getting those spaces inbetween the values?
Thanx in advance!
/// NetRoam
PS: The command worked perfectly fine before I decided to parse the filesize as well (&filesize=%1), but it's necessary for me to use the filesize, so I know exactly in the mail what the file is called and how big it is. Any help is appreciated! Thanx