Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can a batchfile make another file to remember something?  (Read 8727 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Can a batchfile make another file to remember something?
« Reply #15 on: August 05, 2010, 01:55:09 PM »
Hi, this is a forum where I post.  ;D
And yes, I do joke a lot.  :-[
Salmon Trout gave the right answer.  ;)

Ghosty

    Topic Starter


    Rookie

  • Roflz0r
    Re: Can a batchfile make another file to remember something?
    « Reply #16 on: August 05, 2010, 01:57:10 PM »
    Thank you

    That was easier than I though ::)

    Ghosty

      Topic Starter


      Rookie

    • Roflz0r
      Re: Can a batchfile make another file to remember something?
      « Reply #17 on: August 06, 2010, 03:57:30 AM »
      OK, no double post according to Salmon Trout.

      I think last thing, can you recognize the windows version in CMD? Since I want to make an option to open Google Chrome but the installation path is different in Windows XP than in Windows Vista, perhaps even another in Windows 7...

      Thank you

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Can a batchfile make another file to remember something?
      « Reply #18 on: August 06, 2010, 04:28:50 AM »
      Maybe in the forums where you post, but not in mine.

      OK, no double post according to Salmon Trout.

      I can't speak for ST but in all of the forums I frequent/visit, CH,GPC, the ZBoard, TDWTF, and several others, a double post is just that- posting the same message twice. In fact on several occassions people saying that two unrelated posts by the same person  are a double post resulted in a quick and decisive line of questioning of said individuals parentage.

      I also contend that, while I do not know this for sure, I am quite certain that Salmon Trout has been exchanging messages on Message boards and BBS's for a long time and therefore would defer the meaning of terms such as "double-post" to his learned experience.

      Besides, Urbandictionary quite agrees with his definition:

      Quote
      A double post is two posts in a row that can be made into one post, but the person decides to post it in two separate posts. The posts have to have a common element though

      His two posts have no common element. One was addressing your problem. The other was informing you of Geek-9pm's somewhat curious sense of humour. They were not related.
      I was trying to dereference Null Pointers before it was cool.

      kpac

      • Web moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: Can a batchfile make another file to remember something?
      « Reply #19 on: August 06, 2010, 04:46:27 AM »
      BC, why revive something which has already been ended?

      Quote
      ANYWAY let's stop this crap :P this is entirely off-topic

      Ghosty

        Topic Starter


        Rookie

      • Roflz0r
        Re: Can a batchfile make another file to remember something?
        « Reply #20 on: August 06, 2010, 04:50:04 AM »
        I can't speak for ST but in all of the forums I frequent/visit, CH,GPC, the ZBoard, TDWTF, and several others, a double post is just that- posting the same message twice. In fact on several occassions people saying that two unrelated posts by the same person  are a double post resulted in a quick and decisive line of questioning of said individuals parentage.

        I also contend that, while I do not know this for sure, I am quite certain that Salmon Trout has been exchanging messages on Message boards and BBS's for a long time and therefore would defer the meaning of terms such as "double-post" to his learned experience.

        Besides, Urbandictionary quite agrees with his definition:

        His two posts have no common element. One was addressing your problem. The other was informing you of Geek-9pm's somewhat curious sense of humour. They were not related.

        OK I Get It :-[
        Once again, sorry


        Adding to the previous question,
        I know it's possible but I don't know how: I would like to put multiple outputs in one file, instead of putting them in multiple files. I know I have to do something with > or < then but I don't know where to place those :-\

        At the moment I have three codes like this one:
        Code: [Select]
        IF EXIST MediaPlayerChoice.txt (
            SET /P L=<MediaPlayerChoice.txt
            GOTO :PLOADED
            )
        ------
        ------
        ------
        SET /P L=Type your desired number and press ENTER:
        >MediaPlayerChoice.txt ECHO %L%

        Ghosty

          Topic Starter


          Rookie

        • Roflz0r
          Re: Can a batchfile make another file to remember something?
          « Reply #21 on: August 06, 2010, 07:25:31 AM »
          Please any response? :'(

          Salmon Trout

          • Guest
          Re: Can a batchfile make another file to remember something?
          « Reply #22 on: August 06, 2010, 08:03:59 AM »
          Please any response? :'(

          Do not bump threads. This is not your personal help service. My reply which I was about to make is now postponed for 24 hours (at least).



          Ghosty

            Topic Starter


            Rookie

          • Roflz0r
            Re: Can a batchfile make another file to remember something?
            « Reply #23 on: August 06, 2010, 08:19:14 AM »
            Do not bump threads. This is not your personal help service. My reply which I was about to make is now postponed for 24 hours (at least).
            My excuses... Do I have to make a new topic next time?

            Won't do it again. You have my word.

            Salmon Trout

            • Guest
            Re: Can a batchfile make another file to remember something?
            « Reply #24 on: August 12, 2010, 01:15:10 PM »
            Code: [Select]

            @echo off
            if exist "My-Options-file.txt" goto foundfile
            echo Options file not found
            echo.
            echo Choose video player
            echo.
            echo 1 VLC Media player
            echo 2 GOM player
            echo 3 Windows media player
            echo.
            set /p MediaPlayerChoice="Enter 1 2 or 3 "
            echo MediaPlayer:%MediaPlayerChoice%>"My-Options-file.txt"
            echo.
            echo Choose burning app
            echo.
            echo 1 Nero Burning ROM
            echo 2 ImgBurn
            echo 3 Roxio
            echo.
            set /p DiskBurnerChoice="Enter 1 2 or 3 "
            echo DiskBurner:%DiskBurnerChoice%>>"My-Options-file.txt"
            echo.
            echo Choose text editor
            echo.
            echo 1 Notepad
            echo 2 WordPad
            echo.
            set /p TextEditorChoice="Enter 1 or 2 "
            echo TextEditor:%TextEditorChoice%>>"My-Options-file.txt"
            echo.
            goto readfile
            :foundfile
            echo Loading options from file
            :readfile
            for /f "tokens=1-2 delims=:" %%A in (My-Options-file.txt) do (
            if "%%A"=="MediaPlayer" set MediaPlayerChoice=%%B
            if "%%A"=="DiskBurner" set DiskBurnerChoice=%%B
            if "%%A"=="TextEditor" set TextEditorChoice=%%B
            )
            echo Choices:
            echo MediaPlayer  %MediaPlayerChoice%
            echo DiskBurner   %DiskBurnerChoice%
            echo TextEditor   %TextEditorChoice%