如何调用dos命令 "debug"?在线等待 一个dbf文件用foxpro2.5可打开,但用access打开时提示输密码我要调用如下命令,可以驱除密码,用access打开debug aaa.dbf-e 10d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0-w-q但我在vb中用shell ("debug aaa.dbf -e 10d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -w -q ")时不能达到要求,请问如何解决?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试看9x:shell "c:\windows\command.com /c debug aaa.dbf .......",vbHidew2k:shell "c:\winnt\system32\cmd.exe /c debug aaa.dbf .......",vbHide open "c:\debug.txt" for output as #1 print #1,"e 10d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" print #1,"w" print #1,"q"close #1shell "c:\windows\command.com /c debug aaa.dbf<c:\debug.txt",vbhide '9x'shell "c:\winnt\system32\cmd.exe /c debug aaa.dbf<c:\debug.txt",vbhide 'w2k还需要一些延时代码和文件是否存在的判断,在执行完成后,最好删除debug.txt.你自己在调试一下. 另外,通过API应该还有其他方法,不过我不太清楚.不好意思. vb编写过程实现控件的缓慢移动 奇怪的显示......! 程序系统结构的问题? 类不支持自动化的问题 创建动画的窗体标题 在VB中如何动态添加菜单项,一定给分,信誉第一! 请高手指点迷津 请问大家如何实现VB导入导出TXT文件(TAB分隔的数据)到数据库中?请具体一点,最好有例子 在VB中使用ADODC控件,如何在DataGrid控件中显示想要的字段? 一直困扰我的问题 关于VB方面的问题 怎样使图片满表单显示?
shell "c:\windows\command.com /c debug aaa.dbf .......",vbHidew2k:
shell "c:\winnt\system32\cmd.exe /c debug aaa.dbf .......",vbHide
print #1,"e 10d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
print #1,"w"
print #1,"q"
close #1shell "c:\windows\command.com /c debug aaa.dbf<c:\debug.txt",vbhide '9x'shell "c:\winnt\system32\cmd.exe /c debug aaa.dbf<c:\debug.txt",vbhide 'w2k还需要一些延时代码和文件是否存在的判断,在执行完成后,最好删除debug.txt.你自己在调试一下. 另外,通过API应该还有其他方法,不过我不太清楚.不好意思.