jamesbebby Posted April 4, 2011 Share Posted April 4, 2011 (edited) Hi, i do a weekly backup of my anti virus updates with a simple .cmd file on my desktop with save them on my USB driveROBOCOPY "%ALLUSERSPROFILE%\Microsoft\Microsoft Antimalware\Definition Updates\Backup" "Z:\Windows 7\$oem$\$$\Install\FirstLogOn\Anti-Virus Updates\Microsoft Security" /E /ISWhich works fine, Now i would like it if winrar would make a .sfx within this .cmd reading about and i know it can be done.Heres how far ive got "C:\Program Files\WinRAR\rar.exe" a -m5 -sfx "Z:\Windows 7\$oem$\$$\Install\FirstLogOn\Anti-Virus Updates\Microsoft Security\Backup.rar" "Z:\Windows 7\$oem$\$$\Install\FirstLogOn\Anti-Virus Updates\Microsoft Security"This is making the .sfx fine but the only thing is that its adding the whole path with-in the sfx, i just want the files and no pathNote the info.txt will have the .sfx comment that ill be trying to add after this problemIf you know what ive done wrong please advise.Thanks, James Edited April 4, 2011 by jamesbebby Link to comment Share on other sites More sharing options...
Yzöwl Posted April 4, 2011 Share Posted April 4, 2011 Which version of WinRAR are you using?I believe that 'Extract relative paths' is now the default extraction mode in version 4.00, if you are using a previous version you may need to look at the -ep switch. Link to comment Share on other sites More sharing options...
jamesbebby Posted April 4, 2011 Author Share Posted April 4, 2011 (edited) Top man!!! The -ep switch worked.Cheers, JamesEDIT> that -ep switch is working great for the 'Microsoft Security' updates because there all files.But with 'Malwarebytes' Anti-Malware' theres a folder with 2 log files in, so when i run -ep the 2 log file are just being put with the rest of the files and no log folder is being added?....Malwarebytes' Anti-Malware folder layout logs [folder]>protection-log-2011-04-03.txt & protection-log-2011-04-04.txtconfig.dat ignore.datlocal.datrules.refinfo.txtlink.txtnews.txtWhen its been archive in the sfxprotection-log-2011-04-03.txt protection-log-2011-04-04.txtconfig.dat ignore.datlocal.datrules.refinfo.txtlink.txtnews.txtNo log folder included.The log files in 'Malwarebytes' Anti-Malware' are useless but when i start doing/making other command line sfx its guna be.Thanks James Edited April 4, 2011 by jamesbebby Link to comment Share on other sites More sharing options...
jamesbebby Posted April 5, 2011 Author Share Posted April 5, 2011 All sorted now, All thats was missing was -ep1 and a simple \backslash\ that points winrar to the folder"Z:\Windows 7\$oem$\$$\Install\FirstLogOn\Anti-Virus Updates\Microsoft Security" WRONG"Z:\Windows 7\$oem$\$$\Install\FirstLogOn\Anti-Virus Updates\Microsoft Security\" RIGHTWinrar & .cmd your so powerful together, it wicked! Put it this way with 1 click of a .cmd file im backing up and making a sfx that point back to all the right directorys of 'firefox user profile', 'microsoft security essentials', 'Malwarebytes' Anti-Malware' & 'filemenu tools' so on a fresh install everything is going to be like it was!!!Cheers, James Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now