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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create new directory

Status
Not open for further replies.

berthoud

Technical User
Oct 31, 2010
51
FR
Hello,

I'm always in C5ee and I use it only about every 2-3 years so I forget many thinks. lol

I try to create (and manage) a dos Directory.

I'have 2 ways.

1°) using Krikor's MKDIR.tpw but I don't remember the way to include this file in my application

2°) using run('command.com /c mkdir /SiteWeb/Photos/',1)but it don't works

Have you an idea?

Many thanks
 
Thanks cagiv but it seems don't work with c5ee

message "unknown procedure label" (and I don't found it in the doc)
 
Hi!

Include the CWUTIL.INC in your global map (global embeds) as indicated below in the help ::

To add this function to your existing applications, you need only include the CWUTIL.INC file in the Global Map section of your program:

INCLUDE('CWUTIL.INC'),ONCE

Regards


 
Thanks ShankarJ

...but I don't found this file on my Clarion folder. Where I could have it?

Good evening
 
Hi!

Should be in the \<ClarionHome>\LIBSRC folder.

Regards
 
Good Evening

Many thanks. I have not such a file in my C5ee.

I found it in the C6ee on my job, but it don't works with C5 (message =>
expected: <ID> ][,=
)

I can't use c6 because first it's not mine (;-D) and I use a very good template (coollook menu) witch don't works in C6.

Unfortunatly, I think the only way for me is to use run('command.com ...') but when I try

run('command.com /c mkdir /SiteWeb/Photos/',1) it don't works

Maybe an error on the command line????

Bests regards
 
Hi,


wrong syntax, try this:

run('command.com /c mkdir \SiteWeb\Photos',1)
(Directory SITEWEB have to exist)

cagiv
 
Many thanks for your help

I try a lot of way (without /c option to see what apened)

run('command.com mkdir /SiteWeb/Photos/',1
run('command.com mkdir \SiteWeb\Photos\',1

DestinationPathPhotos=clip(LongPath(Path()))&'\SiteWeb\'
SetPath(clip(DestinationPathPhotos))
run('command.com md Photos',1)

DestinationPathPhotos=clip(LongPath(Path()))&'\SiteWeb\'
SetPath(clip(DestinationPathPhotos))
run('command.com md /Photos/',1)

Every time I have this dos error

"Specified command search directory bad
too many parameters"

but if I do

md photos

in the dos windows, its OK
 
If you start command.com with run, cmd need a parameter:

Parameters
/c : Carries out the command specified by string and then stops.
/k : Carries out the command specified by string and continues.
/s : Modifies the treatment of string after /c or /k.
/q : Turns the echo off.
/d : Disables execution of AutoRun commands.
/a : Creates American National Standards Institute (ANSI) output.
/u : Creates Unicode output.
/t:fg : Sets the foreground f and background g colors. The following tables lists valid hexadecimal digits that you can use as the values for f and g

 
in french

"JE SUIS UNE BUSE" [blush]

run('command.com /k mkdir Tests1',1) works fine ... so I may be able to do what I want (I hope)

Many thanks

have a good day

Phil

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top