Re: oluşturma tarihi ve zamanını dosya adına eklemek - Çözüldü
Gönderilme zamanı: 15 Ağu 2021, 18:19
Neredeyse 3 ay geçmiş... Çözüldü mü bu sorun 
@velociraptor abi sen sıcağı sıcağına yanıt yazmışsın ben bu yanıtı gözden kaçırmışım, ancak şu mesajı yazdığım an itibariyle denemedim.velociraptor yazdı: 24 May 2021, 18:14 https://www.sordum.net/59821/dosya-ismi ... lave-edin/
Yol = resim dosyalarının içinde bulunduğu klasör yolu
.jpg = Bu kısmı Png olarak veya farklı bir format olarak değiştirbilirsiniz
setlocal enabledelayedexpansion
for %%F in ("Yol\*.jpg") do (
set "MDate=%%~tF"
set "ParsedDate=!MDate:~0,2!.!MDate:~3,2!.!MDate:~6,4!"
REM To add time
set "ParsedDate=!MDate:~0,2!.!MDate:~3,2!.!MDate:~6,4!_!MDate:~11,2!.!MDate:~14,2!"
copy %%F %%~dpnF_!ParsedDate!%%~xF.new )
copy %%F %%~dpnF_!ParsedDate!%%~xF.new )
for %%F in ("Yol\*.jpg") do (
del %%F )
ren "Yol\*.new" *.
exit
@esatiz konuyu hatırlattığın için teşekkür ederim. Bıraktığımdan sonra bir daha denemedim ancak todo listimde duruyor halen.
Sinirlendiğimde eşya kırmışlığım çoktur. Bu sebeple çok başımın ağrımışlığı da çoktur. Camdan tv atmışlığım var masa sandalye atmışlığım var öyle diyim, ancak maddi olanaklar eskisi gibi değil şu ara küçük sephalar, plastik eşyalar ile idare ediyorum. Pentium 1 bilgisayara kızdığımızda kasanın tepesine yumruk koyardık hey gidi günler hey, şimdi 3 kuruşluk laptopa gözümüz gibi bakıyoruz.shampuan yazdı: 15 Ağu 2021, 20:54 Haşırt! Yine gereksiz bir ayrıntıyı araya koyup gidicem. @feuer'in son eklediği gif, yani adamın monitörü fırlattığı ofis ortamı "The IT Crowd" dizisindendir. Çok güzel çok mükemmel pek komik bir dizidir. İzlemeyeni dövüyolar. Teşekkürler şimdi devam edebilirsiniz![]()
Olur hocam yapın istersenizanxious yazdı: 16 Ağu 2021, 02:45 @feuer İstediğinizi autoit ile yazabilirim,fakat siz cmd komutları istemişsiniz.
Tüm resim formatlarını destekleyen basit kullanımlı bir autoit kodu istermisiniz?
Kolay gelsinfeuer yazdı: 15 Ağu 2021, 23:28 Yakın zamanda ev taşıdık, yerleştirmesi devam ediyor. Hastane randevularımız sıklaştı. İş güç yoğun zamanlar,
Sen denedin sonuç aldın mı?
Kod: Tümünü seç
@echo off
del %temp%\file.vbs 2>nul
>>%temp%\file.vbs echo. Set fso = CreateObject("Scripting.FileSystemObject")
>>%temp%\file.vbs echo. Set f = fso.GetFolder(".")
>>%temp%\file.vbs echo. WScript.Echo "@echo off"
>>%temp%\file.vbs echo. For Each f1 in f.Files
>>%temp%\file.vbs echo. c = f1.DateCreated
>>%temp%\file.vbs echo. a = f1.DateLastAccessed
>>%temp%\file.vbs echo. m = f1.DateLastModified
>>%temp%\file.vbs echo. n = c
>>%temp%\file.vbs echo. WScript.Echo "ren "+String(1,34)+f1.name+String(1,34)+" "+String(1,34)+CStr(Year(m))+Right(100+Month(m),2)+Right(100+Day(m),2)+"_"+Right(100+Hour(m),2)+"h"+Right(100+Minute(m),2)+"m"+Right(100+Second(m),2)+"s_"+f1.name+String(1,34)
>>%temp%\file.vbs echo. Next
cscript //nologo %temp%\file.vbs>%temp%\file.bat
del %temp%\file.vbs
copy /y %temp%\file.bat . >nul
rem call %temp%\file.bat
Kod: Tümünü seç
@echo off
del %temp%\file.vbs 2>nul
>>%temp%\file.vbs echo. Set fso = CreateObject("Scripting.FileSystemObject")
>>%temp%\file.vbs echo. Set f = fso.GetFolder(".")
>>%temp%\file.vbs echo. WScript.Echo "@echo off"
>>%temp%\file.vbs echo. For Each f1 in f.Files
>>%temp%\file.vbs echo. c = f1.DateCreated
>>%temp%\file.vbs echo. a = f1.DateLastAccessed
>>%temp%\file.vbs echo. m = f1.DateLastModified
>>%temp%\file.vbs echo. n = c
>>%temp%\file.vbs echo. WScript.Echo "ren "+String(1,34)+f1.name+String(1,34)+" "+String(1,34)+f.Name+"_"+CStr(Year(m))+Right(100+Month(m),2)+Right(100+Day(m),2)+"_"+Right(100+Hour(m),2)+"h"+Right(100+Minute(m),2)+"m"+Right(100+Second(m),2)+"s_"+f1.name+String(1,34)
>>%temp%\file.vbs echo. Next
cscript //nologo %temp%\file.vbs>%temp%\file.bat
del %temp%\file.vbs
copy /y %temp%\file.bat . >nul
rem call %temp%\file.bat
esatiz yazdı: 16 Ağu 2021, 10:29 @velociraptor un verdiği .new uzantılı resimler oluşturuyor ve salise yok

bu ikincisine benzer bir scripti ben anlık tarih ve zamanı dosya adı sonuna eklemek için kullanıyorum.krocix yazdı: 16 Ağu 2021, 16:58 https://stackoverflow.com/questions/110 ... -truncated
https://blog.devart.com/adding-timestam ... ename.html
sadece ben de bir şeyler buldum gibi oldu sanırım.Komut olayı ben de biraz sıkıntılı o yüzden herhalde ^^ Aynısı bile olabilir bulduklarınızın ama bpş geçmeyeyim diye verdim linkleri
Kod: Tümünü seç
Get-ChildItem -File *.jpg | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }Kod: Tümünü seç
powershell.exe -command "Get-ChildItem -File *.jpg | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"Kod: Tümünü seç
powershell.exe -command "Get-ChildItem -File *.jpg | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"
powershell.exe -command "Get-ChildItem -File *.bmp | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"
powershell.exe -command "Get-ChildItem -File *.png | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"Kod: Tümünü seç
powershell.exe -command "Get-ChildItem -File *.jpg,*.png,*.bmp | ForEach { Rename-Item $_ -NewName ( $_.BaseName + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"Kod: Tümünü seç
powershell.exe -command "Get-ChildItem -File *.jpg,*.png,*.bmp | ForEach { Rename-Item $_ -NewName ( 'IMG' + $_.CreationTime.ToString('_yyyyMMdd_HHmmssff') + $_.Extension ) }"