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

Author Topic: Deleting characters from a string through a batch command  (Read 48129 times)

0 Members and 1 Guest are viewing this topic.

markrbts



    Newbie

    • Experience: Familiar
    • OS: Windows 7
    Re: Deleting characters from a string through a batch command
    « Reply #15 on: March 29, 2017, 12:04:15 PM »
    Hi,

    I have read your code and your comments for this post.

    I have a group of files I need to remove the last 15 characters form.  The goal is to end up with a pdf extension only.  I am trying to adapt your code to my needs.  I can get this to work if I hard code the file name, but I cannot count on the file names being the same all the time.  The problem seems to be in the for statement.   I am not sure if I need the tokens or the delimiters.

    Attached is my adaptation of the code.

    [attachment deleted by admin to conserve space]