Welcome, Guest. Please Login
 
  HomeHelpSearchLogin FAQ Radified Ghost.Classic Ghost.New Bootable CD Blog  
 
Pages: 1 2 
Send Topic Print
a question to the experts - boot cd with hard drive contents scan? (Read 46484 times)
will von wizzlepig
Dude
*
Offline


I Love Radified!

Posts: 10


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #15 - Nov 12th, 2010 at 2:36pm
 
sure...

config.sys just has "lastdrive=z"

autoexec is-

@echo off
SET TZ=GHO+08:00
if exist MOUSE.COM MOUSE.COM
echo Loading...
echo enter the number for the image you want:
echo (1) for Windows 7 32 bit, (11) for same with .net 4
echo (2) for Windows 7 64 bit, (22) for same with .net 4
echo (3) for Vista 32 bit,     (33) for same with .net 4
echo (4) for Vista 64 bit,     (44) for same with .net 4
echo (5) for XP 32 bit,        (55) for same with .net 4
echo (6) for XP 64 bit,        (66) for same with .net 4
echo (7) for Master (win7),    (77) for same with VIM
echo (makenew) Will create a new image named "NewGhost.gho"
echo if you use makenew, don't forgot to go rename the file.
CD \GHOST
 
 
IP Logged
 

NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #16 - Nov 12th, 2010 at 5:18pm
 
@
will von wizzlepig

Okay, I see what you've done--because you named each batch file a number that corresponds to the *echoed* list of options, then typing the number and pressing enter runs that named batch file.

Well, you showed me yours, so I'll show you one of mine:  NightOwl's *automated* files

It's complicated when looking at it at first....but, if broken down into it's components, you can see what different parts do.  It's designed to allow a user to make multiple backups, and have the backups saved until a certain limit is reached, then it starts deleting the oldest backup and saving the newest and keeping the designated number of backups around in a cycling rotation.  Backups have to be on a FAT partition for this to work in DOS.  If all partitions are NTFS, then a batch file that deletes the oldest image file and creates the necessary directory for the newest, and incrementing each of the other backups would have to be done while still in Windows first.  Then you could boot to DOS and run the necessary backup.

I have always found this reference a good place to get explanations and examples of DOS commands:  Vernon J Frazee's MS-DOS v6.22 Help: Command Reference
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #17 - Nov 12th, 2010 at 9:50pm
 
@
will von wizzlepig

I don't know whether this will suit you but can restore Ghost images to your networked computers without leaving your desk. A boot disc isn't needed. It works with Ghost 2003 too. You just need the free TBOSDT to copy a bootable DOS partition (from any computer) to a file and boot from the file. Once you have made the file it can be copied and each copy personalized with a different command line for Ghost. (the file is editable with PowerISO etc) The method is described in bootfile.txt, Example 1. Psexec is used to start the restore on the remote computer.

I use this method to restore images to my kids' computers if they have made a mess of the OS. The backup image can be on my computer or their computer.
 
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #18 - Nov 14th, 2010 at 4:12pm
 
@
NightOwl

Thanks for posting your menus. I've used your config.sys and autoexec.bat on one of my DOS CDs. After edits I have the menus showing my apps. I've learned a hell of a lot.

One question, can I get the A: prompt section to show coloured text and background?
 
 
IP Logged
 
NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #19 - Nov 15th, 2010 at 12:50am
 
@
Brian

Quote:
One question, can I get the A: prompt section to show coloured text and background?

Yes!  But, I'm not an expert at it--I haven't played around with the necessary *syntax* to know for sure what I'm doing.  But here's the steps involved (I just don't know exactly where you have to apply the steps--for instance if you use the *menucolor* command, do you add the prompt escape codes at the beginning of the individual menu item's list in *config.sys*, or *autoexec.bat*, or.....

So, you have to load the DOS driver called *ansi.sys* in the config.sys file.  And you have to have *ansi.sys* in the list of files on your boot disk or disc.  *Ansi.sys* is included in WinXP's Windows>system32 sub-directory, but I don't know if that's the same one used in old school DOS--probably is though!  So like this in config.sys:

device=ansi.sys

or

devicehigh=ansi.sys

Here's the help file for DOS 6.22:  MS-DOS v6.22 Help: ANSI.SYS

Scroll down a ways and you'll find the escape code #'s for text and background colors--as well as *text attributes* such as *bold*, blink on, etc..

At the bottom of the above is a sample of what the syntax is for the DOS prompt:

Quote:
prompt $e[1;32;40m$p$g

The *$e[* is the escape code beginning the ansi paramaters sequence.  Then, if I read that correctly, it's turning on text *bold* (the number *1*), and foreground (text) color *green* (the number *32*), and background color *black* (the number *40*).

The *m* ends the ansi escape codes for graphical codes.

The *$p$g* is just the *standard* DOS prompt appearance codes:

Quote:
PROMPT--Examples

The following example sets the command prompt to display the current drive
and path followed by the greater-than sign (>):

    prompt $p$g

Notice, you can make the DOS prompt much more interesting with the various codes as well!

Let me know how it turns out if you experiment with this!
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #20 - Nov 15th, 2010 at 12:53pm
 
@
NightOwl

I suspect ansi.sys from the System32 folder is the wrong file. I saw this..

Code:
Incorrect DOS Version
There is an error in your config.sys on line 18


I searched Google but couldn't find a download. Except one site which was asking $10. I did find a free ansi138.zip which contained ansi.com. This is called from autoexec.bat and along with your prompt line, works perfectly. I like the green text on black. Thanks again.

http://www.simtel.net/search?q=ansi.sys
 
 
IP Logged
 

Dan Goodell
Special Guest
*****
Offline



Posts: 552
N California


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #21 - Nov 15th, 2010 at 8:06pm
 
Brian wrote on Nov 15th, 2010 at 12:53pm:
I suspect ansi.sys from the System32 folder is the wrong file.


Brian,

Ansi.sys should be one of the files that came with your DOS distribution.

Here's a few more examples of what you can do with ansi.sys.  My own home-brew utility CD boots to a DOS menu enhanced by ansi.sys commands (fig.1).  When shelling out to the command prompt, my DOS prompt embeds a reminder how to get back to the menu (fig.2).  My widely downloaded Dsrfix CD similarly embeds reminder hints (fig.3).

 

ansisys-examples.gif (10 KB | 1032 )
ansisys-examples.gif
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #22 - Nov 17th, 2010 at 3:59am
 
I've now have the DOS ansi.sys file and it loads without an error. However  prompt $e[1;32;40m$p$g  doesn't work. The prompt is still white on black. It did work with ansi.com from autoexec.bat.

I'm using
device=ansi.sys

Dan, how many items can you have in the Utility Menu?
 
 
IP Logged
 
Dan Goodell
Special Guest
*****
Offline



Posts: 552
N California


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #23 - Nov 17th, 2010 at 6:44pm
 
Brian wrote on Nov 17th, 2010 at 3:59am:
However prompt $e[1;32;40m$p$g doesn't work. The prompt is still white on black.

Does it result in any strange characters?  Or does it just stay as
 C:\> 
?  Do other prompt commands work?  (e.g., "prompt $d $t ")


Brian wrote on Nov 17th, 2010 at 3:59am:
I'm using
device=ansi.sys

I assume that's declared in config.sys, and ansi.sys is in the root directory.  (When config.sys is being processed, there is no path variable yet so the path to ansi.sys must be explicitly specified if not in the root directory.)

Which DOS version are you using?  With MS-DOS 7.1 (aka, Win98se) the corresponding ansi.sys was 9719 bytes and had a datestamp of Apr 23, 1999.


Brian wrote on Nov 17th, 2010 at 3:59am:
how many items can you have in the Utility Menu? 

Visually, DOS screens are 80 chars by 25 lines, so if your menu design comprises more than 25 lines the top will scroll off the screen.  The design of my menu allows for 10 double-spaced menu items or 20 single-spaced items.

I use the DOS choice.com function to read alphanumeric keypresses plus [Esc], so programmatically I'm limited to 37 choices.

My configuration files are attached below for reference.

 

DOSMENU.ZIP (2 KB | 859 )
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #24 - Nov 17th, 2010 at 8:00pm
 
Dan Goodell wrote on Nov 17th, 2010 at 6:44pm:
Does it result in any strange characters? 

Yes. It is this...

←[1:32;40mA:\>

But the same prompt works with ansi.com. I get a green A:\>

Dan Goodell wrote on Nov 17th, 2010 at 6:44pm:
Do other prompt commands work?(e.g., "prompt $d $t ")

Yes, that gives day of week, date, time.

Dan Goodell wrote on Nov 17th, 2010 at 6:44pm:
I assume that's declared in config.sys, and ansi.sys is in the root directory. 

Yes and yes.

Dan Goodell wrote on Nov 17th, 2010 at 6:44pm:
Which DOS version are you using?

ansi.sys from DOS 6.22 (date 31 May 1994). But the other DOS files are Win98SE.

Thanks for the menu.




 
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #25 - Nov 18th, 2010 at 3:26am
 
It must have been my ansi.sys. I tried nansi.sys (dated 1991) and now I get a green A:\>
 
 
IP Logged
 

Dan Goodell
Special Guest
*****
Offline



Posts: 552
N California


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #26 - Nov 18th, 2010 at 7:38pm
 
Brian wrote on Nov 17th, 2010 at 8:00pm:
Does it result in any strange characters?

Yes. It is this...

←[1:32;40mA:\>

Okay, that would confirm the problem was with ansi.sys--I suppose probably because of the mismatched version (6.22 vs. 7.1).

Sounds like you've got it resolved, but FWIW, on your Win98se CD the ansi.sys file is inside the win98_52.cab cabinet file, and during installation it is extracted to the c:\windows\command folder.


 
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: a question to the experts - boot cd with hard drive contents scan?
Reply #27 - Nov 18th, 2010 at 9:23pm
 
Thanks. I copied ansi.sys from a Win98SE installation in Virtual PC and it works.

So three files work for me...

ansi.sys
nansi.sys
ansi.com
 
 
IP Logged
 
Pages: 1 2 
Send Topic Print