Jump to content

kkman360

Members
  • Posts

    13
  • Joined

  • Last visited

kkman360's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ok!work fine , thanks everyone.
  2. $var = DriveGetDrive( "CDROM" ) If NOT @error Then MsgBox(4096,"", "Found " & $var[0] & " drives") For $i = 1 to $var[0] MsgBox(4096,"Drive " & $i, $var[1]) Next EndIf Run("$var[1]\software\office\setup") but it can't work .
  3. ok !i try it .thanks!
  4. i make a autosetup xp cd ,when setup complete it will autoinstall office , winrar.....i want use autoit make a autoinstall file but cdrom letter will be d: or e: or f: i can use %cdrom% to get cdrom letter in xp command line,but i don't know how to use it in autoit3. i would you can understand what i mean,beauce my english is not good. thanks !
  5. how to use "%cdrom%" in autoit3? thanks!
  6. thank you very much !it work fine.
  7. i have 1200 folders in temp i want go to each folder and do snacfg /print >com.txt how should i do ? i use RunWait(@COMSPEC & " /c SNACFG #com.cfg /PRINT >COM.TXT") and it can work.but don't chang the path . thank for your reply so fast !
  8. code: $search = FileFindFirstFile("c:\temp") If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop FileChangeDir ( "C:\TEMP\"& $file ) RunWait(@COMSPEC & " /c SNACFG #com.cfg /PRINT >COM.TXT") WEnd FileClose($search) it can'nt work ,how should i do ? thanks!
  9. yes! you are right. ha ha . i get a mistake .must use $file not $search . thanks evry much.
  10. i have 1290 folders in d:\test and copy d:\test\dc\*.* to each one. and $search is name of folder? thanks.
  11. it does not work!why? code: $search = FileFindFirstFile("d:\test\*.*") If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error then MsgBox(0, "ok", "copy complete") ExitLoop endif FileCopy("d:\test\dc\*.*","d:\test\" & $search & "\*" ,1) WEnd ; Close the search handle FileClose($search)
  12. hi! i want to search a string in .txt file and use this string to replace string of other .txt file. how should i do? thanks!
×
×
  • Create New...