I have created a batch file which automatically copy a .sql file to the path of installed Jasper server(it could be any software installation directory).
This is my batch script--
C:\PROGRA~2\JASPER~1.0\mysql\bin\mysql.exe -u root -proot < create_database.sql
that is working when jasper is installed in Program Files(x86). How can i generalize it for both Program Files and Program Files(x86).
C:\PROGRA~1 == C:\Program Files
C:\PROGRA~2 == C:\Program Files (x86)
C:\PROGRA~3 == C:\ProgramData
C:\DOCUME~1 == C:\Documents and Settings
C:\SYSTEM~1 == C:\System Volume Information
.. I could be wrong though.. – Torhert