Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Save notepad file

Save notepad file

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sonani Prakash
    wrote on last edited by
    #1

    hi How to save the notepad file without opening it. can we do it using ShellExecute because I don't see any possibility using this ? Is there any other way to do this ? Thanks, Prakash

    sonani prakash

    C D H 3 Replies Last reply
    0
    • S Sonani Prakash

      hi How to save the notepad file without opening it. can we do it using ShellExecute because I don't see any possibility using this ? Is there any other way to do this ? Thanks, Prakash

      sonani prakash

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Sonani Prakash wrote:

      How to save the notepad file without opening it.

      :confused: Uuh, what is "the notepad file" ? You mean, a simple txt file ? Please explain your question in a clearer way.


      Cédric Moonen Software developer
      Charting control [v1.1]

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        Sonani Prakash wrote:

        How to save the notepad file without opening it.

        :confused: Uuh, what is "the notepad file" ? You mean, a simple txt file ? Please explain your question in a clearer way.


        Cédric Moonen Software developer
        Charting control [v1.1]

        S Offline
        S Offline
        Sonani Prakash
        wrote on last edited by
        #3

        Hi, I need some way to save the file any without opening it. so that I can change it's modification date. that's the purpose of saving the .txt file

        sonani prakash

        N J 2 Replies Last reply
        0
        • S Sonani Prakash

          Hi, I need some way to save the file any without opening it. so that I can change it's modification date. that's the purpose of saving the .txt file

          sonani prakash

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          why dont you use SetFileTime() function?

          nave

          1 Reply Last reply
          0
          • S Sonani Prakash

            Hi, I need some way to save the file any without opening it. so that I can change it's modification date. that's the purpose of saving the .txt file

            sonani prakash

            J Offline
            J Offline
            James R Twine
            wrote on last edited by
            #5

            If all you need to do is update the modification time, look into finding a Windows version of the touch utility.  Should be rather easy to find, and really easy to write - look up the SetFileTime(...) function.    Peace!

            -=- James
            Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            See DeleteFXPFiles

            S 1 Reply Last reply
            0
            • J James R Twine

              If all you need to do is update the modification time, look into finding a Windows version of the touch utility.  Should be rather easy to find, and really easy to write - look up the SetFileTime(...) function.    Peace!

              -=- James
              Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
              Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
              See DeleteFXPFiles

              S Offline
              S Offline
              Sonani Prakash
              wrote on last edited by
              #6

              let me try this one thanks Prakash.

              sonani prakash

              1 Reply Last reply
              0
              • S Sonani Prakash

                hi How to save the notepad file without opening it. can we do it using ShellExecute because I don't see any possibility using this ? Is there any other way to do this ? Thanks, Prakash

                sonani prakash

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Sonani Prakash wrote:

                How to save the notepad file without opening it.

                If the file has not been opened, it therefore has not been changed, thus no save is necessary. Please elaborate.


                "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                "Judge not by the eye but by the heart." - Native American Proverb

                1 Reply Last reply
                0
                • S Sonani Prakash

                  hi How to save the notepad file without opening it. can we do it using ShellExecute because I don't see any possibility using this ? Is there any other way to do this ? Thanks, Prakash

                  sonani prakash

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  But do you have any idea for it?


                  WhiteSky


                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups