由于
pg_dump.exe是exe文件(而不是.bat文件),因此您根本不需要
cmd它,并且它可能会引起更多问题,甚至无法解决。只需
exe直接调用,然后删除文件路径周围多余的引号即可:
new String[]{"D:\PostgreSQL 8.2\bin\pg_dump.exe","-U","usr","-i", "-h","localhost","-p","5432","-F","c","-b", "-f","D:\backup test\backups\test_27-1-2013_210.backup", "test"}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)