Retribution V101 : Syndicate — File Browser
RetributionSyndicatev1.01 / RetributionSyndicatev1.01 / System / syn-r6.ini
syn-r6.ini — 14.65 KB — Download this file
[script]
n0;[----------------------------------------------------------------------]
n0;[ Name : Syndicate : Retribution V101 ]
n0;[ Support : DefCon Industries ]
n0;[ Author : Risc ]
n0;[ ]
n0;[ This Code, Content, is CopyRight 1999 : DefCon Industries ]
n0;[ No Copying, Ripping, or calling this Code your own ]
n0;[ ]
n0;[----------------------------------------------------------------------]
n0=; borg box v0.0.1
n1=;
n2=;
n3=alias getleft return $left($1-,$sub($len($1-),1))
n4=alias getright return $right($1,$sub($len($1-),1))
n5=alias pls return $calc($1 + $2)
n6=alias sub return $calc($1 - $2)
n7=;
n8=alias box { if $1 == -d { bb.2 | halt } | bb.1 }
n9=alias b.echo { if $1 != $null { echo @ßox $1- } }
n10=alias b.space { return $str($1, ) }
n11=alias b.badcf { b.echo $b.space(3) $+ Bad command or filename }
n12=alias b.invdf { b.echo $b.space(3) $+ Invalid directory or filename }
n13=alias b.reqpm { b.echo $b.space(3) $+ Required parameter missing }
n14=alias b.ipnd { b.echo $b.space(3) $+ Invalid path, not directory, | b.echo $b.space(3) $+ or directory not empty }
n15=alias bb.1 { window -ae @ßox fixedsys | titlebar @ßox : [x|x]'s borg box v0.0.1 | set %curdir $left($mircdir,3) | b.bver | b.prompt }
n16=alias bb.2 { window -ade @ßox fixedsys | titlebar @ßox : [x|x]'s borg box v0.0.1 | set %curdir $left($mircdir,3) | b.bver | b.prompt }
n17=alias b.bver {
n18= if $1 == /? || $1 == -? { b.echo Displays box,windows and mirc version as well as fulldate and time. | b.echo $b.space(3) $+ VER | b.prompt | halt }
n19= b.echo $b.space(5) | b.echo [x|x]'s borg box v0.0.1 - Windows $+ $os $+ :mIRC $+ $version
n20= b.echo $b.space(5) $+ $day $adate $time
n21=}
n22=alias b.prompt { b.echo $b.space(1) | b.echo %curdir $+ > }
n23=alias b.help {
n24= b.echo Commands: | b.echo $b.space(3) $+ cd chdir dir ls run mkdir md rmdir rd erase del cb type ren rename move
n25= b.echo $b.space(3) $+ mv copy cp ver cls exec uptime ? help exit quit
n26= b.echo $b.space(3) | b.echo Type command /? or command -? for help on individual commands
n27=}
n28=alias b.dircheck if $exists(%curdir) == $false { b.invdf | set %curdir %olddir }
n29=alias b.dircheck2 if $exists(%b.tmp0) == $false { b.ipnd }
n30=alias b.dircheck3 if $exists(%b.tmp0) == $true { b.ipnd }
n31=alias b.copy {
n32= if $1 == /? || $1 == -? {
n33= b.echo Copies one or more files to another location
n34= b.echo $b.space(3) $+ COPY source destination
n35= b.echo $b.space(3) $+ alias: CP
n36= b.prompt | halt
n37= }
n38= if $1 == $null || $2 == $null { b.reqpm | b.prompt | halt }
n39= if $chr(58) isin $1 { set %b.tmp0 $1 | goto part2 }
n40= if $left($1,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1) | goto part2 }
n41= set %b.tmp0 %curdir $+ $1
n42= :part2
n43= set %b.tmp3 $left(%b.tmp0,$sub($len(%b.tmp0), $len($gettok(%b.tmp0,$pls($count(%b.tmp0,\),1),92))))
n44= set %b.tmp4 $right(%b.tmp0,$sub($len(%b.tmp0),$len(%b.tmp3)))
n45= if $findfile(%b.tmp3,%b.tmp4,0) == 0 { b.echo File not found | goto end }
n46= if $chr(58) isin $2 { set %b.tmp1 $2 | goto doit }
n47= if $left($2,1) == \ { set %b.tmp1 $left(%curdir,3) $+ $getright($2) | goto doit }
n48= set %b.tmp1 %curdir $+ $2
n49= :doit
n50= .copy %b.tmp0 %b.tmp1
n51= b.echo $b.space(3) $+ Copying %b.tmp0 %b.tmp1
n52= :end
n53= b.prompt | unset %b.tmp* | halt
n54=}
n55=alias b.ren {
n56= if $1 == /? || $1 == -? {
n57= b.echo Renames/moves a file/directory.
n58= b.echo REN [drive:][path][directoryname1/filename1] [directoryname2/filename2]
n59= b.echo alias: RENAME MOVE MV
n60= b.prompt | halt
n61= }
n62= if $1 == $null || $2 == $null { b.reqpm | b.prompt | halt }
n63= if $chr(58) isin $1 { set %b.tmp0 $1 | goto part2 }
n64= if $left($1,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1) | goto part2 }
n65= set %b.tmp0 %curdir $+ $1
n66= :part2
n67= if $exists(%b.tmp0) == $false { b.echo File not found | goto end }
n68= if $chr(58) isin $2 { set %b.tmp1 $2 | goto doit }
n69= if $left($2,1) == \ { set %b.tmp1 $left(%curdir,3) $+ $getright($2) | goto doit }
n70= set %b.tmp1 %curdir $+ $2
n71= :doit
n72= if $exists(%b.tmp1) == $true { b.echo File exists already | goto end }
n73= ;.rename %b.tmp0 %b.tmp1
n74= b.echo renaming %b.tmp0 %b.tmp1
n75= :end
n76= b.prompt | unset %b.tmp0 | unset %b.tmp1 | halt
n77=}
n78=alias b.type {
n79= if $1 == /? || $1 == -? { b.echo Displays the contents of text files. | b.echo $b.space(3) $+ TYPE [drive:][path]filename | goto end }
n80= if $1 == $null { b.reqpm | b.prompt | halt }
n81= if $chr(58) isin $1- { set %b.tmp0 $1- | goto doit }
n82= if $left($1,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1-) | goto doit }
n83= set %b.tmp0 %curdir $+ $1-
n84= :doit
n85= if $exists(%b.tmp0) == $false { b.echo File not found | goto end }
n86= .filter -fw %b.tmp0 @ßox *
n87= :end
n88= b.prompt | unset %b.tmp0 | halt
n89=}
n90=alias b.del {
n91= if $1 == /? || $1 == -? { b.echo Deletes a file. | b.echo $b.space(3) $+ DEL [drive:][path]filename | b.echo $b.space(3) $+ alias: ERASE | b.prompt | halt }
n92= if $1 == $null { b.reqpm | b.prompt | halt }
n93= if $chr(58) isin $1- { set %b.tmp0 $1- | goto doit }
n94= if $left($1,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1-) | goto doit }
n95= set %b.tmp0 %curdir $+ $1-
n96= :doit
n97= if $exists(%b.tmp0) == $false { b.echo File not found | goto end }
n98= .remove %b.tmp0
n99= :end
n100= b.prompt | unset %b.tmp0 | halt
n101=}
n102=alias b.rmdir {
n103= if $1 == /? || $1 == -? {
n104= b.echo Removes (deletes) a directory.
n105= b.echo $b.space(3) $+ RD [drive:]path
n106= b.echo $b.space(3) $+ alias: RMDIR
n107= b.prompt | halt
n108= }
n109= if $1 == $null { b.reqpm | b.prompt | halt }
n110= if $chr(58) isin $1- { set %b.tmp0 $1- | goto doit }
n111= if $left($1-,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1-) | goto doit }
n112= set %b.tmp0 %curdir $+ $1-
n113= :doit
n114= if $right(%b.tmp0,1) == \ { set %b.tmp0 $getleft(%b.tmp0) }
n115= .rmdir %b.tmp0 | b.dircheck3 | b.prompt | unset %b.tmp0 | halt
n116=}
n117=alias b.mkdir {
n118= if $1 == /? || $1 == -? {
n119= b.echo Creates a directory.
n120= b.echo $b.space(3) $+ MD [drive:]path
n121= b.echo $b.space(3) $+ alias: MKDIR
n122= b.prompt | halt
n123= }
n124= if $1 == $null { b.reqpm | b.prompt | halt }
n125= if $chr(58) isin $1- { set %b.tmp0 $1- | goto doit }
n126= if $left($1-,1) == \ { set %b.tmp0 $left(%curdir,3) $+ $getright($1-) | goto doit }
n127= set %b.tmp0 %curdir $+ $1-
n128= :doit
n129= if $right(%b.tmp0,1) == \ { set %b.tmp0 $getleft(%b.tmp0) }
n130= .mkdir %b.tmp0 | b.dircheck2 | b.prompt | unset %b.tmp0 | halt
n131=}
n132=alias b.cd {
n133= if $1 == /? || $1 == -? {
n134= b.echo Displays the name of or changes the current directory.
n135= b.echo $b.space(3) $+ CD [drive:][path] | b.echo $b.space(3) $+ CD[..]
n136= b.echo $b.space(3) $+ .. Specifies that you want to change to the parent directory.
n137= b.echo $b.space(3) $+ Type CD drive: to display the current directory in the specified drive.
n138= b.echo $b.space(3) $+ Type CD without parameters to display the current drive and directory.
n139= b.echo $b.space(3) $+ alias: CHDIR
n140= b.prompt | halt
n141= }
n142= if $1 == $null { b.dircheck | b.echo $b.space(1) $+ %curdir | b.prompt | halt }
n143= set %olddir %curdir
n144= if $1- == \ { set %curdir $left(%curdir,3) | b.dircheck | b.prompt | halt }
n145= if $1 == .. {
n146= if $right(%curdir,2) == :\ { b.invdf | b.prompt | halt }
n147= if $count(%curdir,\) == 1) && $chr(58) isin %curdir { set %curdir $left(%curdir,3) | goto doit }
n148= if $right(%curdir,1) == \ { set %curdir $left(%curdir,$sub($len(%curdir),1)) }
n149= if $right(%curdir,1) != \ { set %curdir $left(%curdir,$sub($len(%curdir), $len($gettok(%curdir,$pls($count(%curdir,\),1),92)))) | goto doit }
n150= :doit
n151= b.dircheck | b.prompt | halt
n152= }
n153= :doit
n154= if $chr(58) isin $1- { set %curdir $1- | goto doit2 }
n155= if $left($1,1) == \ { set %curdir $left(%curdir,2) $+ $1- | goto doit2 }
n156= set %curdir %curdir $+ $1-
n157= :doit2
n158= if $right(%curdir,1) != \ { set %curdir %curdir $+ \ }
n159= b.dircheck | b.prompt | halt
n160=}
n161=alias b.dir {
n162= if $1 == /? || $1 == -? {
n163= b.echo Displays a list of files and subdirectories in a directory.
n164= b.echo $b.space(3) $+ DIR [drive:][path][filename]
n165= b.echo $b.space(3) $+ Note: Can only display wildcard or individual filenames from current directory
n166= b.echo $b.space(3) $+ Switches: DIR /W is a wide listing of the current directory
n167= b.echo $b.space(3) $+ alias: LS
n168= b.prompt | halt
n169= }
n170= if $1 == /w { run $mirdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all %curdir $+ *.* | .timer 1 2 b.fdir2 | b.echo $b.space(3) $+ Directory of %curdir $+ *.* | halt }
n171= if $1 == $null { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all %curdir $+ *.* | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of %curdir $+ *.* | halt }
n172= if $chr(46) isin $1 && $chr(42) !isin $1 && $right($1,1) != \ { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all %curdir $+ $1 | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of $1 | halt }
n173= ;mfile writes the file tabs too long here!@#@!$
n174= ;if $chr(46) isin $1 && $chr(42) !isin $1 && $right($1,1) == \ { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all $1 | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of $1 | halt }
n175= if $chr(46) isin $1 && $chr(42) isin $1 && $right($1,1) != \ { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all %curdir $+ $1 | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of %curdir $+ $1 | halt }
n176= if $right($1,1) == \ && $exists($1) { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all $1 $+ *.* | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of $1- $+ *.* | halt }
n177= if $right($1,1) != \ && $exists($1) { run $mircdir $+ addon\mfile.exe dir $mircdir $+ addon\dir.tmp all $1 $+ \*.* | .timer 1 2 b.fdir | b.echo $b.space(3) $+ Directory of $1- $+ \*.* | halt }
n178= b.invdf
n179= b.prompt
n180= halt
n181=}
n182=alias b.fdir2 {
n183= set %b.tmp1 1
n184= set %b.tmp5 $b.space(1)
n185= :top
n186= set %b.tmp2 $read -nl $+ %b.tmp1 $mircdir $+ addon\dir.tmp
n187= if %b.tmp2 == $null { goto end }
n188= inc %b.tmp1
n189= if $left(%b.tmp2,1) == n { set %b.tmp5 %b.tmp5 $+ $lower($gettok(%b.tmp2,4,32)) $+ $b.space(2) | goto top }
n190= if $left(%b.tmp2,1) == d { set %b.tmp5 %b.tmp5 $+ $gettok(%b.tmp2,3,32) $+ $b.space(2) | goto top }
n191= goto top
n192= :end
n193= b.echo %b.tmp5
n194= .timer 1 4 .remove $mircdir $+ addon\dir.tmp
n195= b.prompt
n196=}
n197=alias b.fdir {
n198= set %b.tmp1 1
n199= :top
n200= set %b.tmp2 $read -nl $+ %b.tmp1 $mircdir $+ addon\dir.tmp
n201= if %b.tmp2 == $null { goto end }
n202= inc %b.tmp1
n203= if $left(%b.tmp2,1) == n { b.echo $lower($gettok(%b.tmp2,4,32)) $+ $b.space($sub(17,$len($gettok(%b.tmp2,4,32)))) $+ $b.space($sub(10,$len($gettok(%b.tmp2,2,32)))) $+ $gettok(%b.tmp2,2,32) }
n204= if $left(%b.tmp2,1) == d { b.echo $gettok(%b.tmp2,3,32) $+ $b.space($sub(17,$len($gettok(%b.tmp2,3,32)))) $+ <DIR> }
n205= goto top
n206= :end
n207= .timer 1 4 .remove $mircdir $+ addon\dir.tmp
n208= b.prompt
n209=}
n210=alias b.exec {
n211= if $1 == /? || $1 == -? {
n212= b.echo Executes DOS commands and redirects output to box.
n213= b.echo $b.space(3) $+ EXEC commandline
n214= b.echo $b.space(3) $+ Note: Will minimize and close dos box during processing.
n215= b.prompt | halt
n216= }
n217= if $1 == $null { b.reqpm | b.prompt | halt }
n218= set %b.tmp0 $1-
n219= set %b.tmp1 $mircdir $+ addon\exec.tmp
n220= write -c $mircdir $+ addon\exec.bat @echo off
n221= write $mircdir $+ addon\exec.bat @command /c %b.tmp0 > %b.tmp1
n222= write $mircdir $+ addon\exec.bat @ $+ $mircdir $+ addon\dde.exe mirc command null /b.type %b.tmp1
n223= write $mircdir $+ addon\exec.bat @exit
n224= run -n $mircdir $+ addon\exec.bat
n225= unset %b.tmp*
n226= b.echo $b.space(3) $+ Executing command $1- please wait...
n227= .timer 1 10 .remove $mircdir $+ addon\exec.tmp | .timer 1 10 .remove $mircdir $+ addon\exec.bat
n228= b.prompt
n229= halt
n230=}
n231=alias b.uptime {
n232= if $1 == /? || $1 == -? { b.echo Displays current system uptime. | b.echo $b.space(3) $+ UPTIME | b.prompt | halt }
n233= b.echo $b.space(3) $+ Uptime: $duration($left($ticks,$sub($len($ticks),3)))
n234= b.prompt
n235= halt
n236=}
n237=alias b.runhelp { b.echo Runs a program and/or its associated filenames | b.echo $b.space(3) $+ RUN program arguments | b.echo $b.space(3) $+ See also: EXEC | b.prompt | halt }
n238=alias b.clshelp { b.echo Clears the screen. | b.echo $b.space(3) $+ CLS | b.prompt | halt }
n239=alias b.cbhelp { b.echo Display the current clipboard contents | b.echo $b.space(3) $+ CB | b.prompt | halt }
n240=on *:input:@ßox* {
n241= rline @ßox $line(@ßox,0) %curdir $+ > $+ $1-
n242= if $left($1,1) == $chr(47) { goto end }
n243= set %b.input $1-
n244= if $1 == cls && $2 == /? { b.clshelp }
n245= if $1 == cls && $2 == -? { b.clshelp }
n246= if $1 == cls { clear @ßox | goto mid }
n247= if $1 == ver { b.bver $2- | goto mid }
n248= if $1 == help || $1 == ? { b.help | goto mid }
n249= if $1 == cd || $1 == chdir { b.cd $2- | goto mid }
n250= if $1 == dir || $1 == ls { b.dir $2- | goto mid }
n251= if $1 == mkdir || $1 == md { b.mkdir $2- | goto mid }
n252= if $1 == rmdir || $1 == rd { b.rmdir $2- | goto mid }
n253= if $1 == erase || $1 == del { b.del $2- | goto mid }
n254= if $1 == run && $2 == /? { b.runhelp }
n255= if $1 == run && $2 == -? { b.runhelp }
n256= if $1 == run { .run -n command.com /c start $2- | goto mid }
n257= if $1 == cb && $2 == /? { b.cbhelp }
n258= if $1 == cb && $2 == -? { b.cbhelp }
n259= if $1 == cb { b.echo $b.space(3) $+ Clipboard contents: | b.echo $cb | goto mid }
n260= if $1 == type { b.type $2- | goto mid }
n261= if $1 == ren || $1 == move || $1 == mv || $1 == rename { b.ren $2- | goto mid }
n262= if $1 == copy || $1 == cp { b.copy $2- | goto mid }
n263= if $1 == exit || $1 == quit && $2 == /? || $2 == -? { b.echo Exits the box. | b.echo $b.space(3) $+ EXIT | b.echo $b.space(3) $+ alias: QUIT | b.prompt | halt }
n264= if $1 == exit || $1 == quit { close -@ßox | halt }
n265= if $1 == exec { b.exec $2- | halt }
n266= if $1 == uptime { b.uptime | halt }
n267= b.badcf
n268= :mid
n269= b.prompt
n270= halt
n271= :end
n272=}