×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

create new directory

create new directory

create new directory

(OP)
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

RE: create new directory

CREATEDIRECTORY( directoryname )

cagiv

RE: create new directory

(OP)
Thanks cagiv but it seems don't work with c5ee

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

RE: create new directory

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


 

RE: create new directory

(OP)
Thanks ShankarJ

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

Good evening

RE: create new directory

Hi!

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

Regards
 

RE: create new directory

(OP)
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

RE: create new directory

Hi,


wrong syntax, try this:

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

cagiv

RE: create new directory

(OP)
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
 

RE: create new directory

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

 

RE: create new directory

(OP)
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

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close