PC Review


Reply
Thread Tools Rate Thread

Automated entry to boot.ini?

 
 
ten.nigriv@virgin.net
Guest
Posts: n/a
 
      7th Mar 2006
I would like to add an entry to boot.ini using bootcfg via batch file.

The major stumbling block could be some systems may be multi-boot.

How do I know which boot entry ID relates to that which is currently
running.

I cannot use any tools other than those which are default installed in
XP.
 
Reply With Quote
 
 
 
 
gs
Guest
Posts: n/a
 
      8th Mar 2006
you may be better off use wscript which I belive is installed in most PC


batch file will need quite a bit of parsing with for loops
for /f "usebackq"...
advanced set syntax.
and some temp files

string parsing in batch is no fun

<(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
>I would like to add an entry to boot.ini using bootcfg via batch file.
>
> The major stumbling block could be some systems may be multi-boot.
>
> How do I know which boot entry ID relates to that which is currently
> running.
>
> I cannot use any tools other than those which are default installed in
> XP.



 
Reply With Quote
 
ten.nigriv@virgin.net
Guest
Posts: n/a
 
      9th Mar 2006
On Wed, 08 Mar 2006 16:01:36 -0700, gs wrote:

> you may be better off use wscript which I belive is installed in most PC
>
>
> batch file will need quite a bit of parsing with for loops
> for /f "usebackq"...
> advanced set syntax.
> and some temp files
>
> string parsing in batch is no fun
>
> <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
>>I would like to add an entry to boot.ini using bootcfg via batch file.
>>
>> The major stumbling block could be some systems may be multi-boot.
>>
>> How do I know which boot entry ID relates to that which is currently
>> running.
>>
>> I cannot use any tools other than those which are default installed in
>> XP.

Thanks for the reply!

At present, the scripting method, whether through Windows NT Command
Script, VBScript, WMI, WMIC or any combination isn't my problem.

What I need is a guaranteed method of ensuring that the boot.ini entry I
am using as the basis of my addition is the one which was invoked for the
currently running OS.

The running OS isn't necessarily the one which is default. My initial
thought was to attempt to ascertain the partition number relating to the
%systemdrive%. However, if more than one hard drive is installed there
could conceivably be two Partition(1) entries, so I may have to ascertain
the disc containing the %systemdrive% too.

Any iseas, or would I be better off posting requests in VBS and or BATCH
newsgroups?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated Entry tblackburn Microsoft Access Database Table Design 4 11th Apr 2008 07:09 PM
Automated Entry =?Utf-8?B?SmVu?= Microsoft Access VBA Modules 3 19th Oct 2006 04:23 PM
Automated database entry jdoran@flexstudy.com Microsoft Access 1 16th Feb 2006 09:00 PM
automated entry of parameters? JR Microsoft Access Queries 1 23rd Sep 2004 11:30 AM
XP automated data entry shawn Windows XP New Users 2 27th Aug 2003 11:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:25 AM.