Jump to content











Photo
- - - - -

File Commander for Windows (FCW) script and utilities.


  • Please log in to reply
4 replies to this topic

#1 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 12 December 2010 - 09:08 AM

File Commander for Windows (FCW) script and utilities.

{Written from the perspective of a new Winbuilder user, with only BartPE prior experience.}

FCW is a clone of the old Dos NC, but has Win 32 + 64 bit as well Os/2 (now known as eCS). On the other platforms it is known simply as FC. I think I have been a registered user since Windows 3.1 days and first used FC under Os/2. Later the Australian author, Brian Havard, produced a Windows version and in very recent years, many Linux versions.

Base or Stable version here:-
http://silk.apana.org.au/fc.html
Current Beta and Linux versions here:-
http://silk.apana.or...evelopment.html

I should add FCW is a very minor Nagware, as it only occasionally complains but is otherwise fully functional and without any limitations.

For those like myself who may decide to register, the registration is as the example below.. The same serial number does all operating system types without restriction.

After registering within the program extract this data from the Windows Registry and process for WinBuilder. I used ConvRegToInf20.exe I found via the BootLand forums from Paraglider:-
http://www.paraglide...vRegToInf20.exe

Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\File Commander/W]"Name"="Your registered Name""Serial"=dword:YourSerial"Time"=dword:xxxxxxxx
Here is MY customised fcw.ini file if anyone is interested to use as an example of config options. It does not containing any serial numbers so is quite legal.fcw.ini (derived from my hard drive fcw.ini, not fully tested - a work in progress and will probably change it to suit 7-zip instead of WinRar):-
[Associations]; this is a comment line*.{htm,html}: "%systemdrive%\Program Files\OffByOne\ob1.exe" !f*.dsk: "%systemdrive%\Program Files\fcw\loaddskf" ! a:*.wri: "%systemdrive%\i386\system32\WRITE.EXE" !f*.rtf: "%systemdrive%\i386\system32\WRITE.EXE" !f*.msi: "%systemdrive%\Program Files\WinRAR\WinRAR.exe" !f*.cab: "%systemdrive%\Program Files\WinRAR\WinRAR.exe" !f*.pdf: "%systemdrive%\Program Files\SumatraPDF\SumatraPDF.exe" !f *.doc: "%systemdrive%\office2003viewers\Office11\WORDVIEW.EXE" !f; *.doc: "%systemdrive%\i386\system32\wordpad.exe" !f*.ppt: "%systemdrive%\office2003viewers\powerpoint2003viewer\Pptview.exe" !f*.pps: "%systemdrive%\office2003viewers\powerpoint2003viewer\Pptview.exe" !f*.xls: "%systemdrive%\office2003viewers\Office11\XLVIEW.EXE" !f;*.chm: "%systemdrive%\i386\hh.exe" !f*.hlp: "%systemdrive%\i386\system32\WINHLP32.EXE" !f*.bmp: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.jpg: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.jpe: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.gif: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.png: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.tif: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f*.ico: "%systemdrive%\Program Files\irfanview\i_view32.exe" !f[Viewer Associations][Editor Associations][Colours][Directory Colours][Environment][Archiver:ZIP]Compress=zip -rCompressListfileSwitch=-@ <Extract=unzip --zExtractListfileSwitch=Delete=zip -dCompressDirSpec=! !\*ExtractDirSpec=!\*[Archiver:RAR]Compress=rar a -std -rCompressListfileSwitch=@Extract=rar x -stdExtractListfileSwitch=@Delete=rar d -std -rCompressDirSpec=!\*ExtractDirSpec=!\*[Archiver:LHARC]Compress=lh16 a /s /eCompressListfileSwitch=Extract=lh16 x /sExtractListfileSwitch=Delete=lh16 d /sCompressDirSpec=!\*ExtractDirSpec=!\*[Archiver:ARJ]Compress=arj a -rCompressListfileSwitch=!Extract=arj xExtractListfileSwitch=!Delete=arj dCompressDirSpec=!\*.*ExtractDirSpec=!\*.*[Archiver:ACE]Compress=ace32 a -rCompressListfileSwitch=@Extract=ace32 xExtractListfileSwitch=@Delete=ace32 dCompressDirSpec=!ExtractDirSpec=![Archiver:HA]Compress=ha arCompressListfileSwitch=Extract=ha xExtractListfileSwitch=Delete=ha dCompressDirSpec=!\*ExtractDirSpec=!\*[Archiver:GZIP]Compress=gzip -c %f > %aCompressListfileSwitch=Extract=gzip -dc %a > %fExtractListfileSwitch=Delete=CompressDirSpec=ExtractDirSpec=[Archiver:TAR]Compress=tar -rfCompressListfileSwitch=--files-from=Extract=tar -xfExtractListfileSwitch=--files-from=Delete=tar --delete -fCompressDirSpec=!ExtractDirSpec=![Archiver:7ZIP]Compress=7z aCompressListfileSwitch=@Extract=7z xExtractListfileSwitch=@Delete=7z dCompressDirSpec=!ExtractDirSpec=![Archiver:BZIP2]Compress=bzip2 -c %f > %aCompressListfileSwitch=Extract=bzip2 -dc %a > %fExtractListfileSwitch=Delete=CompressDirSpec=ExtractDirSpec=[General Options]AutoIndent=offAutoSave=offBackground=startBriefWordRight=onCaseFilter=CDFS NETWARECaseMod=llCaseModRecurse=offCaseModDirs=onCaseModFiles=onClock=onCmdChar=!CMPContents=offCMPMask=*CMPSize=0CMPTime=1CMPUnmatched=onCodePage=0Confirmations=24CtrlRDriveChng=offDisableInvert=offEditor=Editor2="%systemdrive%\Program Files\editpad\EditPad.exe"EscPanelSwitch=offExpandedTrees=onFFRootSearch=onFFRecurse=onFFCase=offFFWholeWord=offFFMultiDrive=offFFDriveList=FullScreen=onHidden=onIndentWidth=1KeepExtVisible=onLeft=B:\Right=C:\LeftFilter=*RightFilter=*LeftSort=nameRightSort=nameLeftStyle=fullRightStyle=fullLeftShowing=onRightShowing=onLeftType=filesRightType=filesLines=0Columns=0MaxHist=500MouSpeed=8NumLock=offOverStrike=offPathAppend=PathPrompt=onPMClip=onRetainCount=onSaver=0ScrollDelay=0Shadows=onSizeCountPause=onStartupSide=LStickyAlt=offTabWidth=8TagDirs=offTimeMode=12ThousandSep=onTranslateCP=TreeDir=Viewer=Viewer2=ViewerWrap=onWaitDOS=offColours=27 176 30 62 26 112 7 112 79 160 3 63 48 15 14 7 27 48 d0=B:\d1=X:\Program Files\fcwd2=X:\d3=d4=C:\WINDOWS\SYSTEM32d5=C:\WINDOWS\TEMPd6=C:\Documents and Settings\Your Logon\Local Settings\Tempd7=C:\Documents and Settings\Your Logon\Desktopd8=C:\Documents and Settings\Your Logon\Application Data\Sun\Java\Deployment\cache\d9=
My fcw.mnu (additional menu file, derived from my hard drive fcw.mnu and NOT YET fully tested):-
: FileCommander Menu fileA: Start   Sysinternals AutoRuns           call "%SystemDrive%\Program Files\Sysinternals_Suite\autoruns.exe"B: Start   Off By One Web Browser           "%systemdrive%\Program Files\OffByOne\ob1.exe"C: Teracopy        TeraCopy.exe Copy !fE: Editpad, notepad replacement               "%systemdrive%\Program Files\editpad\EditPad.exe" !F: Format Floppy disk A:                Format a: /uG: Global Delete C:  *.tmp index.dat and pagefile.sys                call globldel.cmdH: SecurAble test for Hardware x32-x64, VT and DEP                call securable.exeJ: Bios Agent v3.45  info tool        "%systemdrive%\Program Files\fcw\Bios Agent v3.45 Full.exe"L: Boot Code Update  by M$  <drive C: >         "%systemdrive%\Program Files\fcw\bcupdate.exe" C:M: MemTest freeware Windows Memory test program        "%systemdrive%\Program Files\fcw\memtest.exe"O: System Information for Windows        "%systemdrive%\Program Files\fcw\siw.exe"R: RegDllView        "%SystemDrive%\fcw\Program Files\RegDllView.exe"S: SaveDskF Floppy disk in Drive A to Default1.dsk ETC in current folder,, incrementing              IF EXIST Default8.dsk REN Default8.dsk Default9.dsk        IF EXIST Default7.dsk REN Default7.dsk Default8.dsk        IF EXIST Default6.dsk REN Default6.dsk Default7.dsk        IF EXIST Default5.dsk REN Default5.dsk Default6.dsk        IF EXIST Default4.dsk REN Default4.dsk Default5.dsk        IF EXIST Default3.dsk REN Default3.dsk Default4.dsk        IF EXIST Default2.dsk REN Default2.dsk Default3.dsk        IF EXIST Default1.dsk REN Default1.dsk Default2.dsk        SaveDskF A: Default1.dsk /A              PauseT: TrueCrypt  Not tested nor finished yet..!        PATH=%path%;"%systemdrive%\Program Files\TrueCrypt        CALL "%systemdrive%\Program Files\TrueCrypt\trueCrypt.exe"U: TrueCrypt Format        PATH=%path%;"%systemdrive%\Program Files\TrueCrypt        CALL "%systemdrive%\Program Files\TrueCrypt\trueCrypt Format.exe"-:===============================P: Zip UP ALL (1default.zip) files in _THIS_  dir And ALL Dirs BELOW.       cls        CALL "%systemdrive%\Program Files\fcw\FCMENU-P.cmd"        zip -roSu 1default.zip *.*             R: FIX  Zip files Only.       cls        CALL "%systemdrive%\Program Files\fcw\FCMENU-R.cmd"        zip -FFroS !              T: TEST Zip files Only.            zip -T !                    pauseW: WipeTrk on MBR of first disk                      "%systemdrive%\Program Files\fcw\WipeTrk.exe"X: Md5sum check of files         copy ! md5sums.md5        md5sum -c md5sums.md5J: RAR UP ALL (1default.rar) files in _THIS_  dir And ALL Dirs BELOW.       cls        CALL "%systemdrive%\Program Files\fcw\FCMENUrr.cmd"        rar a -r -v1048576k 1default.rar *.*             8: CabArc - Create cab files in this location        CALL "%systemdrive%\Program Files\fcw\cabarcT.cmd"9: WinNT IpConfig /ALL        ipconfig /ALL > %temp%\report.txt        "%systemdrive%\Program Files\editpad\EditPad.exe" %temp%\report.txt
My File Commander for Windows LiveXP script can be downloaded here, complete and ready to run:-http://www.mediafire.com/?01xwd0voa8eec

Notes:-
If WinRar use is required, the two WinRar registration files will have to be added to the script via WinBuilder.exe. ie. rarreg.key and rarnew.dat - these have been left out of the script file.

I have used a freeware utility to convert my fcw1.cmd batch file to an fcw1.exe file and also save an icon file within it. I did this because, as a newby to WinBuilder, I could not find a way to apply an icon to a .cmd file in LiveXP.

This freeware utility can be found at:-
"Bat To Exe Converter"
http://www.f2ko.de/d...e_Converter.zip

The fcw1.cmd file I used contains:-

@echo offrem  loading ....  File Commander for Windows  ...PATH=%path%;%systemdrive%\Program Files\fcwcall "%systemdrive%\Program Files\fcw\fcw.exe"

The commandline I used to make fcw1.exe, was (all on one line):-
Bat_To_Exe_Converter.exe -bat fcw1.cmd -save fcw1.exe -icon fcw1.ico

The above can also be done through the programs' GUI interface.


Credits to WetHat for the script template and lots of others (please advise if you recognise your work. I forget where I got everything from, for this project.)

BobxT

Edited by BobxT, 12 December 2010 - 09:31 AM.


#2 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 12 December 2010 - 08:38 PM

I forgot to add about the scripts that I used Wethat's Templates that are available from here:-
http://www.wethat.de/

These templates are ready to go, blank and just have to be filled in.

(I thought I could just edit my previous posting and simply add this additional text, but it appears that there is a tiny window of opportunity to do so.)

BobxT

#3 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 December 2010 - 10:09 PM

:lol:

I did this because, as a newby to WinBuilder, I could not find a way to apply an icon to a .cmd file in LiveXP.


Add_Shortcut api is following:

Add_Shortcut,[Type],[StartMenuFolder],[(Full)FileName],[Title],[Work Folder],[Parameters],[(path)IconFile(#$cIconIndex)],[StartMode=1, 2, or 3],[ToolTip Comment]

giving example with your script, to get icon for batches
&#91;variables&#93;

...

%ProgramEXE%=fcw1.cmd



&#91;process&#93;

...

Add_Shortcut,StartMenu,%pTextBox_StartMenuLocation%,,,,,fcw1.ico


Keep the good work :lol:

#4 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 12 December 2010 - 11:40 PM

:cheers:
Add_Shortcut api is following:

Add_Shortcut,[Type],[StartMenuFolder],[(Full)FileName],[Title],[Work Folder],[Parameters],[(path)IconFile(#$cIconIndex)],[StartMode=1, 2, or 3],[ToolTip Comment]

giving example with your script, to get icon for batches

&#91;variables&#93;

...

%ProgramEXE%=fcw1.cmd



&#91;process&#93;

...

Add_Shortcut,StartMenu,%pTextBox_StartMenuLocation%,,,,,fcw1.ico

Keep the good work :cheers:


Thanks for that info Lancelot, I will save that info for future use.
Meanwhile I have to supply a new link to my original script file as I accidentally deleted it on mediafire.

New link:-
http://www.mediafire.../?01xwd0voa8eec

As I cannot update the first post, Lancelot, is this sufficient or can you please edit my original post to show the current download link..?

Appologies for the inconvenience.
BobxT

#5 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 13 December 2010 - 10:55 AM

Another admin already made the required change :cheers:

after 80 posts (when you reach 100) you will be able to change your posts, till that time feel free to knock the door :cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users