一个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 ")
时不能达到要求,请问如何解决??

解决方案 »

  1.   

    试试看9x:
    shell "c:\windows\command.com /c debug aaa.dbf .......",vbHidew2k:
    shell "c:\winnt\system32\cmd.exe /c debug aaa.dbf .......",vbHide
      

  2.   

    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应该还有其他方法,不过我不太清楚.不好意思.