Re: [請益] 請問如何用記事本寫批次備份檔?

看板Soft_Job (軟體人)作者 (godel)時間17年前 (2008/07/27 01:51), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串5/5 (看更多)
Use WinRAR to backup Active Directory is no the typical way, though saving disk space, it is not the recommended by Microsoft. Microsoft got it's onw ADSI interface to be called by vbs script. ADSI (Active Directory Service Interfaces) Another recommendation would be NTBackup.exe http://technet.microsoft.com/en-us/library/bb727048.aspx As for WinRAR, open a Command Prompt Box, then go to the WinRAR directory, at c:\, keyin rar/? > help.txt, the content of help.txt looks like following, Usage: rar <command> -<switch 1> -<switch N> <archive> <files...> <@listfiles...> <path_to_extract\> <Commands> a Add files to archive c Add archive comment cf Add files comment cw Write archive comment to file d Delete files from archive e Extract files to current directory f Freshen files in archive <Switches> - Stop switches scanning ac Clear Archive attribute after compression or extraction ad Append archive name to destination path ag[format] Generate archive name using the current date ao Add files with Archive attribute set ap<path> Set path inside archive as Synchronize archive contents av Put authenticity verification (registered versions only) av- Disable authenticity verification check c- Disable comments show -------------------------------------------------------------- Any further reading, google "active directory" vbs or Winrar. Best wishes, and good luck. Night. : ' Backing My PDA Phone's SD Card Content into PC without multimedia files : strComputer = "." : Set WshShell = WScript.CreateObject("WScript.Shell") : parameter = "u -r -m5 -ri6 -ilogD:\HermiteProfile\Desktop\SDBack.log : -xI:\Videos\*.* -xI:\Musics\*.* -xI:\AudioBooks\*.* -x*.tr3 D:\PDArchives.rar : I:\*.*" : WshShell.Run """c:\program files\utility\winrar\rar.exe""" & parameter : _________________________________________________________________ : save above code into text files with extension vbs, like backup.vbs. : For parameter, you need to check up helpfile of winrar. : : 小妹我是在一間公司的資訊部門當小小的MIS助理 : : 上個月主機AD的其中一顆硬碟掛點 : : 現在已換新硬碟 : : 不過工程師說批次備份檔要重寫 : : 想把E:\的資料夾寫到D : : 要寫成rar的形式 : : 有人懂我在說什麼嗎? : : 工程師說他可以再另外找時間過來幫我寫 : : 可是我還是希望能自己學著寫看看 : : 但是我試了一下 : : 發現還是沒有頭緒 : : 公司只有我一個 : : 主管在大陸了 : : 所以沒人可以幫我 : : 因為公司的mis不需要會程式 : : 所以我才可以進來上班...嗚... : : 有哪位厲害的大大可以解救我一下嗎... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.133.85

07/27 21:27, , 1F
這篇正解. 不過其實最重要的只是System State要用
07/27 21:27, 1F

07/27 21:28, , 2F
NTBackup或其他專用的軟體備份. 一般檔案我想用winrar
07/27 21:28, 2F

07/27 21:29, , 3F
也並無不可吧? :)
07/27 21:29, 3F
文章代碼(AID): #18YsGpKe (Soft_Job)
文章代碼(AID): #18YsGpKe (Soft_Job)