Computing.Net > Forums > Programming > FIND Length of DOS File name?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FIND Length of DOS File name?

Reply to Message Icon

Name: BillRich
Date: June 10, 2009 at 11:56:23 Pacific
OS: Windows XP
Subcategory: C/C++
Comment:

FIND Length of DOS File name with a batch file? A C program?



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: June 10, 2009 at 18:58:45 Pacific
Reply:

are you the same person here?
there is no need to code in C for such a task. you can do it with batch (but its a hassle). easier way ->> use a better tool or programming language, eg vbscript or Python (or Perl etc) and i have shown how to do it in vbscript in the link above


0

Response Number 2
Name: Mechanix2Go
Date: June 10, 2009 at 19:09:06 Pacific
Reply:

I'm wondering what a DOS file name is. Is that the trashed version of an LFN that you get in DOS?

Like good 'ol c:\progra~1

or what?


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 3
Name: BillRich
Date: June 10, 2009 at 20:16:00 Pacific
Reply:

"I'm wondering what a DOS file name is. Is that the trashed version of an LFN that you get in DOS?

Like good 'ol c:\progra~1 or what?

The XP Pro OS has cmd.exe ( command interpreter ). A Dos File name is not correct. The file names are part of XP and the command page opened with cmd.exe. The commands and file names resemble the old Dos files.

There are generic file programs that can find the length of a file name regardless of the OS or command interpreter. Thanks for your help


0

Response Number 4
Name: BillRich
Date: June 10, 2009 at 20:20:13 Pacific
Reply:

Ghost wrote:
Are you the same person here?
there is no need to code in C for such a task. you can do it with batch (but its a hassle). easier way ->> use a better tool or programming language, eg vbscript or Python (or Perl etc) and I have shown how to do it in vbscript in the link above."

I could not get the vbs to run at Hope. Can you show the output on the Hope Board?


0

Response Number 5
Name: ghostdog
Date: June 10, 2009 at 20:50:28 Pacific
Reply:

>>>I could not get the vbs to run at Hope. Can you show the output on the Hope Board?

already did. it should work.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: FIND Length of DOS File name?

Length of a file in C www.computing.net/answers/programming/length-of-a-file-in-c/831.html

how to find length of image IN C www.computing.net/answers/programming/how-to-find-length-of-image-in-c/3495.html

strip file name to variable DOS www.computing.net/answers/programming/strip-file-name-to-variable-dos/17111.html