I\'m writing an application which should make a complete copy of one database and then import it on the same server with different name.
So, I guess I should use mysqldump
You have two choices:
> C:\\Documents and Settings\\admin\\Desktop\\databases\\db.sql
is not a command line parameter. You need to sssemble and the parameter and redirection part string and use shell execution. Make sure, you use an absolute path name.