Computing.Net > Forums > Programming > XP CMD Batch Insert CR/LF in File

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.

XP CMD Batch Insert CR/LF in File

Reply to Message Icon

Name: pcpro17
Date: August 10, 2006 at 11:05:29 Pacific
OS: Win XP Pro SP2
CPU/Ram: Pentium 4 @ 3GHz, 1GB RAM
Product: Dell Optiplex GX280
Comment:

I'm trying to take input from two user-defined strings and save them to a file for later use by another batch process. I am able to generate the file as demonstrated below, expect it won't insert a CR/LF.

SET /P LocalPath=Specify local file path to backup:
SET /P BackupPath=Specify remote backup location:
ECHO %LocalPath%#%BackupPath% > CONFIG.INI

Any suggestions?



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 10, 2006 at 11:25:32 Pacific
Reply:

ECHO %LocalPath%> CONFIG.INI
ECHO %BackupPath%>> CONFIG.INI


=====================================
If at first you don't succeed, you're about average.

M2



0
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 Programming Forum Home


Sponsored links

Ads by Google


Results for: XP CMD Batch Insert CR/LF in File

inserting word DELETE in a log file www.computing.net/answers/programming/inserting-word-delete-in-a-log-file/17700.html

Batch file to stip folders www.computing.net/answers/programming/batch-file-to-stip-folders/10813.html

Adding Text To Lines In File www.computing.net/answers/programming/adding-text-to-lines-in-file/9176.html