Uncategorized

Run .exe on a Webpage using Firefox

Firefox LogoAs I have showed in my earlier post How to run .exe on a Webpage but that code runs only on Internet Explorer. Here after the demand of my readers I am going to show you how can you achieve this task through Firefox browser.

Click here to Execute your file

In the above code you can clearly see that in "href" attribute I am calling a user-defined function  LaunchApp() and functionality of this function is shown as follows:

In the above code you can see the use of JavaScript privileges API. You can add one line of code asking permission to enable a privilege that can allow your script to access your target.

In Mozilla Firefox there are certain privileges that are associated with specific targets, In our code we are using "UniversalXPConnect" privilege to give Unrestricted access to browser APIs using XPConnect. After assigning privileges just running your local .EXE file by using Mozilla Firefox built in classes. That's it just use above code and do let me know your experience about it through comments.

Source: Run .exe on a Webpage using Firefox

Uncategorized

How to run .exe on a Webpage

HTML ImageThere are certain scenarios where you need to run your .EXE file through HTML page. In this blog I will show you how can you achieve this task on html page by using JavaScript.

Click here to Execute your file

The above code will call a user defined function call LaunchApp() which you can see in the following code snippets.

In the above JavaScript a LaunchApp() is defined which will first check for the browser if your browser is not internet explorer  then it will show you message that your browser doesn’t support the ActiveXObject and only available for InternetExplorer,If it is InternetExplorer then it will create object for WScript.Shell and will execute yourfile.exe in the D:\software location.

Source: http://codereflex.net/how-to-run-exe-on-webpage/

Uncategorized

How to Access MySQL Remotely

MySQL iconIn the enterprise environment you may want to access your MySQL database remotely through ant MySQL client, that client may be SQLYog,MYSQL WAVE or any other client tool.

Well for this you have to assign your IP and the user  certain permission for accessing the MySQL server through remote client.Following is the procedure to assign IP and permissions.

Step 1:

Login your MySQL command shell through root user

Step 2:

Once you have logged in run following command:

grant all on *.* to abc@’xxx.xxx.xxx.xxx’ identified by ’123′;

In the above command you can easily understand that a user “abc” is bind to the IP “xxx.xxx.xxx.xxx” having password “123″ has been granted all permissions to all databases and their objects.

In “*.* ” the first * is used for database and the next * is used for objects of the database like Tables,Views e.t.c and *.* means all databases and their objects.

Via: http://codereflex.net

Image source: http://presto-x.deviantart.com/