Jump to content

Recommended Posts

Posted

Sorry, if this is already posted somewhere. I searched and could not find anything.

I am using FileWrite to write 'two' line to a .bat file.

I need a return or line break between the two lines as thus:

c:\docume~1\username\etc\etc

---space here---

s:\\docume~1\username\etc\etc

Your help is appreciated!

Posted

Thanks. I tried that, but apparently I am not putting it in the correct place.

Can you help?

FileWrite ($file , 'copy "S:\Docume~1\etc\etc, @LF')

That doesn't seem to work. I also tried @CF and @CRLF etc.

Posted (edited)

Try FileWrite ($file , 'copy "S:\Docume~1\etc\etc"' & @LF) (not tested)!

Or use FileWriteLine() which will append automatically a CR!

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

  • Moderators
Posted

oneway,

You need to comcatenate the strings like this: :x

FileWrite ($file , 'copy "S:\Docume~1\etc\etc' & @CRLF)

@CRLF is the standard Windows line ending. :P

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...