I've got this command with args in a windows batch file (*.bat) to dump a database:
The output is redirected to a file by ">"
In B4J I don't get it:
works (stout contains the dump).
Trying to redirect the output with ">" to a file doesn't
I could write stout to a file but is it possible to do it by a parameter?
B4X:
C:\xampp\mysql\bin\mysqldump -u root -ppw dbname > "C:\xampp\htdocs\xxx\Dumps\dbname.sql"
The output is redirected to a file by ">"
In B4J I don't get it:
B4X:
sh.Initialize("sh", "C:/xampp/mysql/bin/mysqldump.exe", Array As String("-u root", "-p","pw", "dbname")
works (stout contains the dump).
Trying to redirect the output with ">" to a file doesn't
B4X:
sh.Initialize("sh", "C:/xampp/mysql/bin/mysqldump.exe", Array As String("-u root", "-p","pw", "dbname", ">", "C:\xampp\htdocs\xxx\Dumps\dbname.sql"))
I could write stout to a file but is it possible to do it by a parameter?