Jump to content

Xcopy Sorun


imcliff
 Share

Recommended Posts

Arkadaşlar internet cafede anabilgisayarımda yüklü olan bir online oyunu her update geldiğinde update ediyorum. Haliyle diğer makinelerde deep freeze yüklü olduğu için zaman kaybetmemek için. Ana bilgisayardaki klasörü diğer bilgisayarlarda ağ sürücüsü olarak tanıttım. Her update geldiğinde diğer makinelerde de sadece tarihi değişen dosyaları kopyalasın diye bi komut dosyası yaptım komut dosyası aşağıdaki gibi:

xcopy Z(ağ sürücüsü):\*.* /s /e /h /y /d /q /z /I C:\hedef dosya

Şimdi diyeceksiniz tamam güzel işte yapmışsın :) ama bu güncellemeleri zamanla deep freeze kapatıp yapıyorum ama bir de baktım ki klasörün anabilgisayarımdaki boyutu 3GB iken diğer makinelerde 20GB olmuş :) çok bakındım ama bir türlü ne yapacağımı bulamadım. Şimdiden ilgi ve alaka için teşekkür ederim.

Link to comment
Share on other sites

[b]VBS ile yap müdür, eski dosyaların üzerine yazar...
Örnek verim bi dakka:[/b]

[quote]Sub Klasor_Kopyala()
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")

fso.copyfolder "C:\Program Files\handyCafe\Server\backupdb", "D:\Yedek\handyCafe\backupdb"
fso.copyfolder "C:\Documents and Settings\All Users\handyCafe\FServer\logs", "D:\Yedek\Log\FServer\logs"
msgbox "Yedekleme Tamamlandı"
End Sub
call klasor_kopyala[/quote]

[b]notepad içine yazıp vbs uzantılı kaydet...
Bu arada benim diğer forumlardaki nickim xcopy'dir, burada 5 karakter kabul etmediği için zxcopy aldık... :D[/b]

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...