Jump to content

Masa Üstüne Klasör Oluşturma


Xeon
 Share

Recommended Posts

Masa üstüne Klasör oluşturmak İstiyorum Fakat Klasörün İsmi o Günün Tarihi Olacak bilgisayar yeniden başladığında yada ilk açıldığında  program klasörü oluşturacak fakat aynı klasör varsa hiçbir şey yapmayacak  klasör aynı kalacak  

 umarım anlatabilmişimdir bat. dosyası Vbs. kodlardan anlamadığım için buraya yazdım ilgilenenlere şimdiden teşekkür.

Link to comment
Share on other sites

AutoIT formatındadır, geliştirilebilir ama en basit şekliyle durum bundan ibaret, fonksiyonu çalıştırman yeterli msgbox ı silip, compile ettikten sonra da başlangıca ekledin mi tadından yenmez ;)

 

MsgBox(0,"",_GunlukKlasor())

Func _GunlukKlasor($kYolu = @DesktopDir)
	Local $kAdi = @MDAY & "." & @MON & "." & @YEAR
	if StringRight($kYolu,1) <> "\" Then $kYolu &= "\"
	if  FileExists($kYolu) and StringInStr(FileGetAttrib($kYolu),"D") Then
		if FileExists($kYolu&$kAdi) Then
			Return SetError(2)
		Else
			DirCreate($kYolu&$kAdi)
			Return SetError(0)
		EndIf
	Else
		Return SetError(1)
	EndIf
EndFunc
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...