UZUNLAR Posted March 30, 2020 Share Posted March 30, 2020 for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do ( xcopy "%%i:\LTSC_Integrate\tools\oscdimg.exe" C:\Work\Tools\ xcopy "%%i:\LTSC_Integrate\x64\*.*" C:\Work\Updates\ ) YUKARIDAKİ gibi........... xcopy G:\ C:\Work\DVD\ /e /h = Yapmak isteyipte yapamadığım kodun Türkçe Meali : Eyyyy kod !! Windows Gezgini ile extract ettiğim ISO kalıbının olduğu DVDROM 'un HARFINI bul ve git tüm içeriği C:\Work \DVD \/e/h kopyala. Yani ; xcopy nin önüne " G:\ " harfini elle yazmamış olacam. xcopy G:\ C:\Work\DVD\ /e /h Kod yazan üstadlardan bekliyorum Quote Link to comment Share on other sites More sharing options...
Editor köylü Posted March 30, 2020 Editor Share Posted March 30, 2020 (edited) bende cdrom olmadığı için deneyemedim aşağıdaki kod cdromun sürücünü harfini bulur ve ekrandada gösterir sanırım sizin için önemli olan cdromu harf yazmadan bulması Spoiler @echo off setlocal for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do ( if [%%j]==[5] echo %%i ) endlocal Edited March 30, 2020 by köylü 2 1 Quote Link to comment Share on other sites More sharing options...
Mehmet Posted March 30, 2020 Share Posted March 30, 2020 ;~ #include <array.au3> #include <WinAPIShellEx.au3> $drive = DriveGetDrive("CDROM") If Not @error Then ;~ _ArrayDisplay($drive) For $CdDVD = 1 To $drive[0] If DriveStatus($drive[$CdDVD] & '\') = "READY" Then ConsoleWrite($drive[$CdDVD] & " " & DriveStatus($drive[$CdDVD]) & @CRLF); CD veya DVD Listelemek için kontrol edebilirsin _WinAPI_ShellFileOperation($drive[$CdDVD] & "\*.*", @HomeDrive & "\" & "Work\DVD", $FO_COPY, $FOF_SIMPLEPROGRESS);$FOF_SIMPLEPROGRESS kısmını silip $FOF_SILENT eklersen tamamen sessiz kopyalar EndIf Next EndIf 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.