FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Trying to create a .bat file for windows using fwrite(
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Trying to create a .bat file for windows using fwrite( [message #183666 is a reply to message #183658] Thu, 07 November 2013 20:00 Go to previous message
scasti1 is currently offline  scasti1
Messages: 2
Registered: November 2013
Karma:
Junior Member
On Wednesday, November 6, 2013 5:07:33 PM UTC-7, sca...@yahoo.com wrote:
> I can create the .bat file, but the resulting file does not have the same new line
>
> characters as another file that executes and looks the same except for this
>
>
>
> the working file seems to have the type of newline characters
>
> you would see in a word document (select it and you see a little
>
> blank character area)
>
>
>
> will using PHP_EOL solve my problem?
>
>
>
> both files end up being properly recognized by the system as
>
> batch files and both look the same in terms of content except for
>
> the new line (i created my new line by using /r/n
>
> Its not the same.
>
>
>
> Thanks for any help.

My solution was to do a more normal set of batch commands rather a funky set that worked for some reason some time in the past and still did but could not be replicated with new iterations of creation for some reason. Since it wasn't working initially, I thought something else may be wrong. I did still use PHP_EOL but /r/n would have worked too I'm sure. Thanks for the help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: another value passing problem
Next Topic: values won't transfer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 03:50:26 GMT 2024

Total time taken to generate the page: 0.04088 seconds