Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Save in DOS - help

  • 11-10-2006 06:05PM
    #1
    Closed Accounts Posts: 584 ✭✭✭


    Hey all,
    any of you know how to save a file in DOS? any commands?
    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Bit more explanation?

    Do you mean something like.

    echo Hello World! > helloworld.txt

    ?


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    You can redirect output for many programs much like you can in Linux, if thats what you mean.


  • Closed Accounts Posts: 198 ✭✭sh_o


    C:\>copy con: temp.txt
    this is a test
    ^Z
    1 file(s) copied.

    C:\>more temp.txt
    this is a test


    Is that what you are looking for?


  • Closed Accounts Posts: 584 ✭✭✭hallelujah


    I have a file that I am editing. Its a long story but I want to write a batch file that when run, saves the file I am editing..


  • Closed Accounts Posts: 80 ✭✭realblackstuff


    That would only work from within the Editor (just hit File/Save or /Save as..) , because that file is in memory while you work at it!
    That batch would only save the status of that file BEFORE you opened it for editing.


  • Advertisement
  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Well, off the top of my head, I can confidently say that we're going to need to hear that long story if you want help. What kind of an editor comes without a saving option anyway?


  • Closed Accounts Posts: 583 ✭✭✭monkey tennis


    For a start, it might be helpful if you name the editor you're using.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    I think if you get some decent editor it will autosave for your.

    Try..

    notepad+
    ultraedit
    jext


  • Moderators, Society & Culture Moderators Posts: 9,688 Mod ✭✭✭✭stevenmu


    You don't open a file in DOS, therefore you can't save a file in DOS. DOS is just an operating system that lets you run programs. You open files with a program that runs in the DOS operating system, and you need to use that program to save the file.


  • Closed Accounts Posts: 583 ✭✭✭monkey tennis


    Werl, actually, the program uses DOS to open the file. That's what an operating system is for.


  • Advertisement
  • Moderators, Society & Culture Moderators Posts: 9,688 Mod ✭✭✭✭stevenmu


    True*, but from the users perspective, and in relation to the OPs query, it's the program that opens/saves files.






    *With DOS programs could directly access the hard disks, bypassing DOS and reading/writing files themselves.


Advertisement