|
楼主 |
发表于 2009-7-29 14:52:03
|
显示全部楼层
谢谢 afan,我现在掌握了怎么在制定地方的创建文件夹和复制文件了。
但是我还是按照相同的办法,确没有办法删除已创建的文件了
$gml = GUICtrlCreateInput('',11,120,240,23)
$Button1 = GUICtrlCreateButton("Remove All", 240, 160, 135, 25)
........
........
Case $Button1
$h=MsgBox(1+48,'Attention','Are you suren you want to Delete all the folders ?')
Select
Case $h=1
Del()
sleep(300)
msgbox(64, 'Finish', 'You have deleted all the folders! ')
.......
........
Func Del()
$gmld = GUICtrlRead($gml)
DirRemove($gmld & '\' & 'MP3-1',1)
.........
.........
Func scml()
$ymlr = GUICtrlRead($yml)
$gmlr = GUICtrlRead($gml)
$sl1 = GUICtrlRead($s[1])
If $gmlr = '' Then $gmlr = @ScriptDir
For $i1 = 1 To $sl1
$fn1 = 'MP3-'
$xml1 = $gmlr&'\'&$fn1&$i1
DirCreate($xml1)
if $ymlr <> '' then DirCopy($ymlr, $xml1, 1)
$ywc = $ywc + 1
$sl2 = GUICtrlRead($s[2]) |
|