简单做法 ren *.icl *.ico复杂做法.写个程序 Dim fso As New FileSystemObject Dim fd As folder Set fd = fso.GetFolder("c:\abc")Dim f As File For Each f In fd.Files Dim filename As String filename = f.Path If Right(filename, 4) = ".icl" Then filename = Left(filename, Len(filename) - 1) filename = filename & "o" f.Move filename End If Next
Dim fso As New FileSystemObject 类型未定义 需要加入什么控件啊。
在引用里面加入microsoft scripting runtime,就可以啦
dim file as string file=dir("c:\myIcon\*.ic1) do until file="" name file as left(file,len(file)-4) & ".ico" loop
ren *.icl *.ico复杂做法.写个程序
Dim fso As New FileSystemObject
Dim fd As folder
Set fd = fso.GetFolder("c:\abc")Dim f As File
For Each f In fd.Files
Dim filename As String
filename = f.Path
If Right(filename, 4) = ".icl" Then
filename = Left(filename, Len(filename) - 1)
filename = filename & "o"
f.Move filename
End If
Next
类型未定义
需要加入什么控件啊。
file=dir("c:\myIcon\*.ic1)
do until file=""
name file as left(file,len(file)-4) & ".ico"
loop
出现错误文件未找到。
控件里面有吗?我找不到啊,
另外 icl 文件和 ico 文件不同,其中中包含了多个图标。l是libary的意思,多的时候一个文件中可能包含几十个不同的图标。建议你去下载一个MicroAngelo图标编辑软件,打开icl文件,把其中要用的图标保存出来。