using batch files to insert signature


  1. Posts : 233
    Windows 7 Home Premium SP1 64bit
       #1

    using batch files to insert signature


    Win7 Home Premium x64 SP1

    There is another forum where I am active that does not support custom signature options. To use a custom signature,you must have it saved somewhere else and use copy/paste to insert it into a post.

    I am just beginning to learn batch files and have found that all the commands are not supported by Win7. I have no idea whether or not an elementary batch file can be written to do the following (in pseudo-code). I am guessing that the scripting is too complex for me at this stage of the learning process.

    Start
    Open <some_name>.txt file
    Select All
    Copy
    Print to screen "signature ready to be pasted"
    End

    Then simply paste the signature instead of following the steps above one at a time to complete the task.

    Before I waste too much time trying to write a batch file for this task, please tell me whether it can be done without more advanced knowledge.

    Thanks.
    drpepper




    Last edited by drpepper; 26 Mar 2012 at 14:58. Reason: typo
      My Computer


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    Yes, it can be done, and easier than "selecting_all_and_copying" (those are GUI terms).
    Please check my script in attachment.
    using batch files to insert signature Attached Files
      My Computer


  3. Posts : 233
    Windows 7 Home Premium SP1 64bit
    Thread Starter
       #3

    Neutron16,

    Thanks. I was pretty sure that I was goofing up the terminology. That is why I used pseudo code to convey the general idea of the requirements.

    I noticed what looked like copyright in your attached file. Can I safely assume that by virtue of sharing you have given me permission to use it for my personal use?

    drpepper
      My Computer


  4. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #4

    If you are talking about letter C in brackets, that was a joke.

    I just tried to show different commands for educational purposes.

    There is no copyrighted material in that script. It was not registered anywhere.
    You can do whatever you want with that script.
      My Computer


  5. Posts : 233
    Windows 7 Home Premium SP1 64bit
    Thread Starter
       #5

    Yep... the C ... It Caught me!<-- gotta love it

    Thanks
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:54.
Find Us