Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Hardip Hardip is offline
external usenet poster
 
Posts: 3
Default Off-Topic: Counting File Path Length

Hello All

I have a drive with numerous folders. I want to count the total character
length of each path to the document.

Y:/drivename/folder/subfolder/document_name.doc (= 47 characters)

Is there a function in windows that will allow a count of all the paths?

Thanks to all who respond.
H


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Off-Topic: Counting File Path Length

Each path? There should only be one path to the current document and you can
count its length with a macro

Dim strPath As String
Dim iLength As Integer
strPath = ActiveDocument.FullName
iLength = Len(strPath)
MsgBox iLength

http://www.gmayor.com/installing_macro.htm
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Hardip wrote:
Hello All

I have a drive with numerous folders. I want to count the total
character length of each path to the document.

Y:/drivename/folder/subfolder/document_name.doc (= 47 characters)

Is there a function in windows that will allow a count of all the
paths?

Thanks to all who respond.
H



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help topic? Stan Brown New Users 4 March 31st 07 11:16 PM
cannot open a word file. file name or path is invalid reghu Microsoft Word Help 2 February 24th 06 05:55 AM
.doc file length double-sized under Office 2003! __XXX__ Microsoft Word Help 7 October 10th 05 04:17 PM
How to remove a path to load a file I've moved under the File menu Donaldo New Users 15 August 25th 05 10:14 AM
Length of file name huskerco Microsoft Word Help 0 January 1st 05 09:45 PM


All times are GMT +1. The time now is 05:57 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"