Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Resettings file location pointer in open files

Reply
 
Old 01-09-2009   #1 (permalink)
G-man uk


 
 

Resettings file location pointer in open files

Is there any way after opening a file in vbs to reset the file pointer
back to the beginning or to say a set amount of lines/characters into
the file other than closing then re-opening the file?

Thanks in advance

My System SpecsSystem Spec
Old 01-09-2009   #2 (permalink)
Paul Randall


 
 

Re: Resettings file location pointer in open files


"G-man uk" <me@xxxxxx> wrote in message
news:6sp3lqF7domsU1@xxxxxx
Quote:

> Is there any way after opening a file in vbs to reset the file pointer
> back to the beginning or to say a set amount of lines/characters into the
> file other than closing then re-opening the file?
>
> Thanks in advance
I don't know of any way to move the pointer backward, but the skip and
skipline methods of the textstream object will rapidly move it forward a
specified amount.

-Paul Randall


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: search > right click > open file location (or folder) Vista General
Broken "Open File Location". General Discussion
VBScript to list PST files and their location on a specific drive ona PC to a CSV file VB Script
moving files----file open??? Vista General
"Open File Location" in Search Results opens Recent Items Folder Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46