Computing.Net > Forums > Disk Operating System > Bats to EDIT autoexec.bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Bats to EDIT autoexec.bat

Reply to Message Icon

Name: JOHN FARLEY
Date: April 27, 2000 at 18:20:31 Pacific
Comment:

I have written a batch file [with all of your help, thank you] that changes my win logo everytime I boot up. What I would like to do is write an install batchfile so I can give this to my friends, the problem is I am calling Logoswap.bat from my autoexec.bat file, but I know many of my friends don't know how to edit it [safely anyway], how do I write a batchfile than can actually edit their autoexec.bat file, to put the line in it calling the Logoswap.bat file? I can write the batch file to install all the logos[5], install the Logoswap.bat [to C: drive] file, even backup their original autoexec.bat file[ to autoexec.old], but how do I enter the line "CALL C:\Logoswap.bat file" to their autoexec.bat through the install bat file??? It seems I need to have this batfile open up the autoexec, make the changes then save and exit..



Sponsored Link
Ads by Google

Response Number 1
Name: marvin
Date: April 28, 2000 at 03:45:02 Pacific
Reply:

You can do the following:
create an installation batch file autoinst.bat
contents: copy c:\autoexec.bat + c:\autoex-2.bat autoexec.bat

create autoex-2.bat
contents: call logoswap.bat

run the autoinst.bat. then the contents of the autoex-2.bat (call function) will be added to the autoexec.bat.

You can merge any text (txt, asc, bat) based file this way.

greetings, Marvin


0

Response Number 2
Name: browser
Date: April 28, 2000 at 05:08:11 Pacific
Reply:

echo CALL C:\Logoswap.bat >>C:\autoexec.bat

Will add it as the last line in the file.


0

Response Number 3
Name: JOHN FARLEY
Date: April 28, 2000 at 16:06:22 Pacific
Reply:

I am fairly new to Dos, browser I did not understand your tip, sorry I will study it a little more....marvin I implemented your tip and it did add the line to the file, but at the end of the line that was added was a black square, will this hurt the performance of the line?? Thank you both for your responses...you were both helpful..Thanx again


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Bats to EDIT autoexec.bat

Force WinME to read autoexec.bat. www.computing.net/answers/dos/force-winme-to-read-autoexecbat/14202.html

How do U edit autoexec.bat in dos? www.computing.net/answers/dos/how-do-u-edit-autoexecbat-in-dos/10019.html

To marvin & browser www.computing.net/answers/dos/to-marvin-amp-browser/2845.html