DIGIT-ARC read-only archive · snapshot: July 23, 2026

vbscript query

3 posts · originally from https://geek.digit.in/community/threads/vbscript-query.134359/

A
anuragingle Original post #1
Nov 25, 2010 at 1:41 PM
need help with vbscript code to read specific number of characters from a text file and save them to another file

For example : read all the characters from 10th character to the 20th character and write these characters to another text file

I know its simple but i cant seem to figure it out.

code needs to be in vbscript not vb6 or .net

Can anybody help?

Thanks
E
enjoy #2
Nov 30, 2010 at 11:16 AM
Are you stuck at a certain issue or you want somebody to write it completely for you.

It should be pretty easy.
Read the file. Use Mid function ( mid(str, 10,20) )and save in other file.
logicsync
Dec 23, 2010 at 10:00 PM
this should completely help you out:

Text File Scripting using VB and VBScript :wink: