Hi everyone!
First of all im new to this forum and also new regarding bat/php things, so i hope someone here can be at help. Im trying to help out other people with easy install of a hardware defined key to their pc.
what i got is this in a bat file:
@echo Date: %DATE% Time: %TIME% User: %USERNAME% Hostname: %COMPUTERNAME% OS: %OS% CPU: %Processor_Identifier% CPU Arch: %Processor_Architecture% Cores: %Number_Of_Processors% CPU Rev: %Processor_Revision% CPU Level: %Processor_Level% Key: %RANDOM%%RANDOM%%RANDOM%%RANDOM%%RANDOM%%RANDOM%%RANDOM%%RANDOM% >>myhardwarekey
i need this integrated into a php page with a button so when they press the button they download the hardware made key to a specific folder or a user defined folder.
Example:
C:/program files/my program
i found this on the internet:
<?php
if(isset($_POST['submit']))
{
echo exec('start.bat');
echo "Done!";
} else {
// display the form
?>
<form action="" method="post">
<input type="submit" name="submit" value="DO IT!">
</form>
<?php
}
?>
if thats of any kind of help?![]()
Regards Odin![]()



, so i hope someone here can be at help. Im trying to help out other people with easy install of a hardware defined key to their pc.
Reply With Quote

Bookmarks