Activity Stream
48,167 MEMBERS
6733 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default need rar & rename commands for windows

    here are the linux commands for rar

    Code: 
    for f in *.*;do rar a -m0 -v209716 "$f".rar "$f";done 
    
    for f in *.rar;do unrar e -o+ "$f";done
    and rename command is
    Code: 
    for f in *.*;do mv "$f" mysite_"$f";done
    some pls replay with similar batch ( dos commands in windows) commands
    vgnheart Reviewed by vgnheart on . need rar & rename commands for windows here are the linux commands for rar for f in *.*;do rar a -m0 -v209716 "$f".rar "$f";done for f in *.rar;do unrar e -o+ "$f";done and rename command is for f in *.*;do mv "$f" mysite_"$f";done Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member


  4.     
    #3
    Member
    Website's:
    Google.com
    Didn't find that link much useful don't know how to use , not ur fault , so thanks shadows .

    Hope I'm not spamming ur thread , but can some one tell me how to make the same command but woth these additional functions :

    first :

    1- add a site shortcut into many folders in a specific directory .

    2- Change the folders names from sample to sample my site name

    3- rar many folders in a specific directory to 100/200 mb / part as store type of commpression

    4- auto upload to many accounts . ( optional , not really needed )

    I'm willing to pay up tp 10 $ ( i know it's not too much , but I will release it to everyone , so it will be helpful for all )

  5.     
    #4
    Member
    Have a look in www.rarlab.com, I think there is a commandline version you can get.


  6.     
    #5
    Member
    rarlabs says the commands for single extraction. i am looking for a "for condition loop"

  7.     
    #6
    Member
    I have no time atm
    but
    Read this and you will be able to convert it easily
    http://tldp.org/LDP/abs/html/dosbatch.html
    Coding Horror Fan
    I don't read PM's frequently .

  8.     
    #7
    Member
    desiboy, thanks for the link; but the link describes conversion of a bat file to shell script. is there any page that describes shell to bat ?

  9.     
    #8
    Member
    Quote Originally Posted by vgnheart View Post
    desiboy, thanks for the link; but the link describes conversion of a bat file to shell script. is there any page that describes shell to bat ?
    bro read it the other way..
    I have done it many time
    Coding Horror Fan
    I don't read PM's frequently .

  10.     
    #9
    Member
    no need of that link, i made a bat file myself by studying basics; but still there is a issue my script wont function on folder names with spaces on it. the issue is with rar command line tool itself as it wont accept filenames with spaces on commandline.

    do u have a bat file to remove spaces from folder names ?

    i am already tiered , spent more than 30hrs on making the following bat

    1) rename all folder name from folder to folder-mysite
    2) put site.txt on all folder
    3) compress with rar store option and split into 200mb part
    4) move all rar to a separate folder called output

    as far i heard cmd wont do strip out of spaces on folder names.

  11.     
    #10
    Member
    thnx for all those replied. finaly made a standalone bat which do all works . even though it took more than 40hrs, i am satisfied with it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GRUB Commands
    By Albert.Nawaro in forum Server Management
    Replies: 0
    Last Post: 17th Feb 2012, 08:21 AM
  2. Common SSH Commands - Linux Shell Commands
    By 0ccul7 in forum Server Management
    Replies: 15
    Last Post: 20th Jan 2012, 01:11 PM
  3. SSH FTP UPload Commands
    By Maverick in forum Server Management
    Replies: 6
    Last Post: 17th Jan 2012, 01:18 AM
  4. cPanel Commands to run from SSH
    By Bharat in forum Technical and Security Tutorials
    Replies: 4
    Last Post: 5th Dec 2011, 01:18 PM

Tags for this Thread

BE SOCIAL