windows – 将参数传递给psql.exe
发布时间:2020-12-14 04:13:12 所属栏目:Windows 来源:网络整理
导读:我想从应用程序启动psql.exe.用户找到脚本,因此它可以在他的磁盘上的任何位置,并且应用程序只是将该脚本提供给psql.就是这样. 什么是正确的命令行? 我试过这个没有成功 "C:Program FilesPostgreSQL9.1binpsql.exe" TEST SYSADM -f "C:Documents and S
我想从应用程序启动psql.exe.用户找到脚本,因此它可以在他的磁盘上的任何位置,并且应用程序只是将该脚本提供给psql.就是这样.
什么是正确的命令行? 我试过这个没有成功 "C:Program FilesPostgreSQL9.1binpsql.exe" TEST SYSADM -f "C:Documents and SettingsAdministrateurMes documentsTD6.0FETCHINGinstall.sql" 我尝试使用引号,没有引号,没有工作,它只是忽略了参数(在cmd.exe上试过这个) C:Documents and SettingsAdministrateur>"C:Program FilesPostgreSQL9.1binpsql.exe" TEST SYSADM -f "C:Documents and SettingsAdministrateurMes documentsTD6.0FETCHINGinstall. sql" psql: warning: extra command-line argument "-f" ignored psql: warning: extra command-line argument "C:Documents and SettingsAdministrateurMes documentsTD6.0FETCHINGinstall.sql" ignored Password for user SYSADM: 是的,如果脚本与psql.exe位于同一目录中,并且如果我首先将CD安装到安装psql.exe的位置,则表示没有引号,没有绝对路径,并且它可以正常工作.但是,在我的情况下,我希望应用程序可以在任何Windows安装上工作,这意味着psql.exe可以在任何地方,sql脚本也可以在任何地方.我仍然希望将脚本提供给psql.exe.
试试这个:
"C:Program FilesPostgreSQL9.1binpsql.exe" -f "C:Documents and SettingsAdministrateurMes documentsTD6.0FETCHINGinstall.sql" TEST SYSADM (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 避免.NET版本的地狱
- Windows下有内置的命令行工具,如wget / curl吗?
- windows-phone-7 – 如何判断用户是选择了Light还是Dark主题
- windows-phone-7 – 在phone7中打开一个项目文件
- UEFI计算机上的Windows和Linux的映像(例如,使用Clonezilla)
- windows-server-2003 – 如何对服务器黑客进行验尸
- windows-7 – 从Visual Studio 2012中删除窗口阴影/光晕
- active-directory – Windows bginfo显示A.D到期日期?
- Windows相当于iptables?
- Windows上的多个并行MSys / MingW安装
推荐文章
站长推荐
- windows – 如何读取GPU(显卡)温度?
- windows-phone-7 – 错误:System.Windows.ni.dl
- com – Microsoft UIAutomation中是否存在内部超
- Windows FILETIME结构是否包含闰秒?
- windows-server-2008-r2 – 将Win 2008 R2域 –
- Windows 2012 R2 中的AD DS部署
- Windows – IIS 7.5中应用程序池的CPU限制
- xaml – windows phone 7.1中的scrollviewer网格
- windows-server-2008 – 使用1GB内存运行Windows
- windows-server-2008-r2 – Windows 2008 R2 gpu
热点阅读