如何调用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应该还有其他方法,不过我不太清楚.不好意思. 枚举所有窗口句柄问题,求教 关于读取.TXT内的字符,并且统计数字个数的问题 俺这段代码有错吗?怎么总过不去 请问:关于MSGBOX 各位,我用VB做海康的HC4004监控卡,遇到个原始图象数据回调问题,大家帮我看看~ 怎样在程序读写文件的时候或程序内部运行时显示等待光标 SQL语句导入dbf文件,出现“找不到可安装的ISAM”错误 ACTIVEX EXE问题 朋友的论坛,支持一下! 中秋节快乐!高手请进,在VB中,如何实现自引用结构、链表、堆栈、队列? 如分不够,回答正确,可再加! 关于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应该还有其他方法,不过我不太清楚.不好意思.