موفقين ياغوالي ,,
جات في بالي فكرة أداة إعادة تسمية عدة ملفات دفعة واحدة :d:
وعملتها حبيت أطرح لكم السورس كود للفائدة ,,
طبعا أنا عملتها عشان أعرض لكم السورس
طبعا توجد هناك أشياء كثييييييرة غير مشروحة ,,
هدفي من السورس هو فتح أشياء جديدة حتى تبحث عنها في الكتاب المساعد ,, وتتعلم بمفردك

k:
معقد بعض الشيء :q: يستخدم دوالString كثيرة (( حركة مقصودة )) :d:
كما وضعت شيء جديد ,, حتى يكون باب

يوجد Func بأبسط شكل ممكن :d:
نصيحتي ::
1 ) ابحث في كتاب المساعدة
2 ) ثم ابحث في كتاب المساعدة :d:
3) ثم ابحث في كتاب المساعدة :cr:
4 ) ابحث عن أمثلة أخرى أو استعن بأمثلة كتاب المساعدة :hh: عن طريق البحث :q:
آخر شي تفكر فيه هو السؤال :d:
تعلم بنفسك !! أحسن تعليم من التعلم من السورسات

k:
طبعا أنا كنت أريد التعقيد فيه :bleh: , يوجد أمر جاهز يفكك المسارات لأجزاه ,, ولكني فكيتها عن طريق دوال String :hh: :bleh: حتى تحصل فائدة أكثر

k:
استعينوا بـ _ArrayDisplay حتى تعرفوا مابالمصفوفات وأيضا MsgBOx حتى يوضع مابالمتغيرات

k:
والظاهر إني غثيتكم ,,
وهذا هو السورس
كود:
[COLOR=#669900]#cs ----------------------------------------------------------------------------[/COLOR]
[COLOR=#669900] AutoIt Version: 3.3.0.0[/COLOR]
[COLOR=#669900] Author: Ashalshaikh : Ahmad ALshaikh[/COLOR]
[COLOR=#669900] Script Function:[/COLOR]
[COLOR=#669900] Example [/COLOR]
[COLOR=#669900]#ce ----------------------------------------------------------------------------[/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$Files[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]FileOpenDiaLog[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"Select Files ::: Multy Select Allow !!"[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#ff33ff]@DesktopDir[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"All Files (*.*)"[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#ac00a9]5[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]If[/COLOR] [COLOR=#ff33ff]@error[/COLOR] [COLOR=#0000ff]Then[/COLOR] End[COLOR=#ff0000]([/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$nName[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]InputBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"Please Write New Name For All Files"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]If[/COLOR] [COLOR=#ff33ff]@error[/COLOR] [COLOR=#0000ff]Then[/COLOR] End[COLOR=#ff0000]([/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]If[/COLOR] [COLOR=#000090]StrIngInStr[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"|"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#0000ff]Then[/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$SS[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]StrIngSplit[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"|"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#aa0000]$SS[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#ac00a9]1[/COLOR][COLOR=#ff0000]][/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9]1[/COLOR]
[COLOR=#0000ff]FOr[/COLOR] [COLOR=#aa0000]$x[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9]2[/COLOR] [COLOR=#0000ff]To[/COLOR] [COLOR=#aa0000]$SS[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000]][/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$fExt[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]StrIngSplit[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$SS[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#aa0000]$x[/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"."[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#aa0000]$fExt[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000]][/COLOR]
[COLOR=#0000ff]While[/COLOR] [COLOR=#000090]FileExists[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$nName[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"_"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"."[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]+[/COLOR][COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9]1[/COLOR]
[COLOR=#0000ff]WEnd[/COLOR]
[COLOR=#000090]FileMove[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$SS[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#aa0000]$x[/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$nName[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"_"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"."[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Next[/COLOR]
[COLOR=#0000ff][COLOR=#0000ff]Else[/COLOR][/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$fExt[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]StrIngSplit[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"."[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#aa0000]$fExt[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000]][/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]StrIngSplit[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"\"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]StrIngReplace[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#aa0000]$Folder[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#aa0000]$Folder[/COLOR][COLOR=#ff0000][[/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000]][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Local[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9]1[/COLOR]
[COLOR=#0000ff]While[/COLOR] [COLOR=#000090]FileExists[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$nName[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"_"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"."[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]+[/COLOR][COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9]1[/COLOR]
[COLOR=#0000ff]WEnd[/COLOR]
[COLOR=#000090]FileMove[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$Files[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#aa0000]$Folder[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$nName[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"_"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$r[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"."[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$fExt[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]EndIf[/COLOR]
End[COLOR=#ff0000]([/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Func[/COLOR] End[COLOR=#ff0000]([/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#000090]MsgBox[/COLOR] [COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"By : Ashalshaikh : Ahmad ALshaikh"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"شكرا لك على اسخدام الأداة"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Exit[/COLOR]
[COLOR=#0000ff]EndFunc[/COLOR] [COLOR=#009933];==>End [/COLOR]
هو لمن يريده ,,
طوره وخليه بإسمك دون ذكر المصدر :d:
k:
شكر لكم !!