几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   [求助]请问哪位高手知道如何改文件名:把“c:\\aa.txt”改成"bb.txt" (http://www.dimcax.com/hust/showthread.php?t=11317)

yang686526 2009-04-26 02:47 PM

[求助]请问哪位高手知道如何改文件名:把“c:\\aa.txt”改成"bb.txt"
 
[求助]请问哪位高手知道如何改文件名:把“c:\\aa.txt”改成"bb.txt"
www.dimcax.com
[求助]请问哪位高手知道如何改文件名:把“c:\\aa.txt”改成"bb.txt"
请问哪位高手知道如何改文件名:
把“c:\\aa.txt”改成"bb.txt"
d
(vl-file-rename old-filename new-filename)
examples
_$ (vl-file-rename "c:/newauto.bat" "c:/myauto.bat")
d
非常感谢andyhon!还有就是问一下,如何判断c:\\下有没有“newauto.ini”没有则新建,并在“newauto.ini”中写入“(command "-style" "宋体" "宋体" 0.00 0.8 0 "n" "n" "n")”呢?
d
open一下试试,打不开就说明没有
d
可不可以写个完整一点的?
d
doslib内有法现成的函数
doslib:
dos_filep
--------------------------------------------------------------------
returns the existence of a file.
syntax
(dos_filep filename)
parameters
filename
the source filename.
returns
t if filename exists.
nil if filename does not exist, or on error.
example
command: (dos_filep "c:\\program files\\autocad


所有的时间均为北京时间。 现在的时间是 11:24 AM.