secoo140 Posted July 7, 2014 Share Posted July 7, 2014 merhaba bir tane belvedere diye programım var. çeşitli dosyaları çeşitli yerlere taşıyor. aynı IDM gibi bunun için %currentuser%documents içine md pdf md excel md word sonra videos içine md indirilenler gibi klasörler oluşturmam gerekiyor. değişkenler denilen bu %---% değerlerini girmeyi bilmediğim için kendim yapamadım. yardım edersniz sevinirim Quote Link to comment Share on other sites More sharing options...
canavar123 Posted July 7, 2014 Share Posted July 7, 2014 batch dosyası derken bat dosyası mı demek istedin Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted July 7, 2014 Share Posted July 7, 2014 Komut pencersine SET yazarsan o bahsi geçen %--% değişkenleri görebilirsin. Quote Link to comment Share on other sites More sharing options...
blackman12 Posted July 7, 2014 Share Posted July 7, 2014 Ya da bilgisayar > özellikler > gelişmiş sistem ayarları > ortam değişkenleri bölümünden sistemin ve senin kullanıcına ait sistem değişkenlerini görebilir. Yeni değişkenler tanımlayabilir ve hangi değişkenin hangi yola tekabül ettiğini görebilirsin ;) Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 7, 2014 Share Posted July 7, 2014 batch dosyası derken bat dosyası mı demek istedin bat dosyası zaten batch'in kısaltılmışıdır. Quote Link to comment Share on other sites More sharing options...
secoo140 Posted July 7, 2014 Author Share Posted July 7, 2014 SET komutu için allah razı olsun :D bu arada şimdi şu aşamadayım cd %homepath% cd belgelerim md pdf md excel md word md slaytlar md Rar md Exe cd %homepath% cd videos md indirilenler ilki çalışıyor ikinci ne hikmet çalışmıyor...b bakalım araştırıyorum Quote Link to comment Share on other sites More sharing options...
TeYyArEe Posted July 7, 2014 Share Posted July 7, 2014 Uzun uzadıya CD MD kodları ile uğraşmana gerek yok ki, MD %USERPROFILE%\DOCUMENTS\<klasör ismi> MD %USERPROFILE%\VIDEOS\<klasör ismi> Haydi kolay gele ! Quote Link to comment Share on other sites More sharing options...
secoo140 Posted July 7, 2014 Author Share Posted July 7, 2014 Bunu bir de kopyalama konusunda genişletmek istiyorum. %homepath% içindeki belli klasörleri soracağı bir adrese kopyala demek istiyorum. mesela e diyeceğim harici belleğe taşıyacak. Quote Link to comment Share on other sites More sharing options...
TeYyArEe Posted July 7, 2014 Share Posted July 7, 2014 Şöyle yapabilirsin Echo off Choice /C CDEF /M "Dosyalar hangi sürücüye aktarılsın ? [C:,D:,E:,F:]" if errorlevel 1 goto CC if errorlevel 2 goto DD if errorlevel 3 goto EE if errorlevel 4 goto FF :CC Copy /Y /V %userprofile%\documents\PDF C:\PDF goto END :DD Copy /Y /V %userprofile%\documents\PDF D:\PDF goto END :EE Copy /Y /V %userprofile%\documents\PDF E:\PDF goto END :FF Copy /Y /V %userprofile%\documents\PDF F:\PDF goto END :END Echo Tüm dosyalar kopyalandı Pause Exit Haydi kolay gele ! Quote Link to comment Share on other sites More sharing options...
secoo140 Posted July 8, 2014 Author Share Posted July 8, 2014 Echo off Choice /C CDEF /M "Dosyalar hangi sürücüye aktarılsın ? [C:,D:,E:,F:]" if errorlevel 1 goto CC if errorlevel 2 goto DD if errorlevel 3 goto EE if errorlevel 4 goto FF :CC Copy /Y /V %userprofile%\documents C:\YEDEK Copy /Y /V %userprofile%\downloads C:\YEDEK\1 Copy /Y /V %userprofile%\music C:\YEDEK\2 Copy /Y /V %userprofile%\videos C:\YEDEK\3 Copy /Y /V %userprofile%\pictures C:\YEDEK\4 goto END :DD Copy /Y /V %userprofile%\documents D:\YEDEK Copy /Y /V %userprofile%\downloads D:\YEDEK\1 Copy /Y /V %userprofile%\music D:\YEDEK\2 Copy /Y /V %userprofile%\videos D:\YEDEK\3 Copy /Y /V %userprofile%\pictures D:\YEDEK\4 goto END :EE Copy /Y /V %userprofile%\documents E:\YEDEK Copy /Y /V %userprofile%\downloads E:\YEDEK\1 Copy /Y /V %userprofile%\music E:\YEDEK\2 Copy /Y /V %userprofile%\videos E:\YEDEK\3 Copy /Y /V %userprofile%\pictures E:\YEDEK\4 goto END :FF Copy /Y /V %userprofile%\documents F:\YEDEK Copy /Y /V %userprofile%\downloads F:\YEDEK\1 Copy /Y /V %userprofile%\music F:\YEDEK\2 Copy /Y /V %userprofile%\videos F:\YEDEK\3 Copy /Y /V %userprofile%\pictures F:\YEDEK\4 goto END :END Echo Tüm dosyalar kopyalandı Pause Exit BU hale getirdim hemen ama çalışmadı. xcopy mi yazmam gerekiyor acaba Quote Link to comment Share on other sites More sharing options...
Rancho Posted July 8, 2014 Share Posted July 8, 2014 klasör yapar kopyalamak istediğin içeriği tekrar klasörü yapıp içeriğini kopyalayıp atar. mkdir %USERPROFILE%\DOCUMENTS\pdf mkdir %USERPROFILE%\DOCUMENTS\word mkdir %USERPROFILE%\DOCUMENTS\excell mkdir %USERPROFILE%\VIDEOS\indirilenler mkdir D:\pdf xcopy %USERPROFILE%\DOCUMENTS\pdf D:\pdf pause Quote Link to comment Share on other sites More sharing options...
TeYyArEe Posted July 8, 2014 Share Posted July 8, 2014 Choice kodlarını sadece örnek olarak verdim. Geri kalan kod işlemlerini de kendiniz yapmanız gerekli. İster XCOPY ile yapın, ister for döngüsü ile yapın farketmez, benim verdiğim sadece işleyiş ile ilgili bir örnek sadece, bunu düzenlemek ve geliştirmek sizin elinizde ! Haydi kolay gele ! 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.