怎样在vfp在命令窗口中再设置一个默认的文件夹,此文件夹有你要运行的文件。

2025-04-04 04:33:32
推荐回答(3个)
回答1:

先建一个你需要的文件夹,比如

MD :\AAA

然后再输入

set defa to d:\AAA

(大小写无所谓)

回答2:

set default to 路径
set path to 路径

回答3:

在主程序加上如下代码:
cCurrentProcedure = SYS(16,1)
nPathStart = AT(":",cCurrentProcedure)- 1
nLenOfPath = RAT("\", cCurrentProcedure) - (nPathStart)
SET DEFAULT TO (SUBSTR(cCurrentProcedure, nPathStart, nLenofPath))