Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a nested directory in one step, using Netcobol for windows 6.1

Status
Not open for further replies.

Tromba

Programmer
Apr 7, 2001
85
IT
Hello to all users

Here a little tips to create a nested directory with a series of subforlders using a single Windows Api call.

First, you need to load the IMAGEHLP.LIB library into your project.

The statement:

CALL "MakeSureDirectoryPathExists"
WITH STDCALL LINKAGE
USING W-PATH RETURNING RESULT

where W-PATH field must be defined like this:
(C:\Program Files\First\Second\Three\)

Note the last "\" after the "Three": MUST BE INCLUDED..

This call create the directory "Program Files" (if it doesn't exist), then "FIRST", then "SECOND" and so on...

Have fun.

Gianni

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top