×
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

FPD 2.5b and Extended Error 183 when creating a directory

FPD 2.5b and Extended Error 183 when creating a directory

FPD 2.5b and Extended Error 183 when creating a directory

(OP)
I'm trying to create a directory underneath my executable using this as my code RUN MD hipaa837 and I get

Extended error 183.

Where my exe is 3 folders off of the root and they are long file names so the path looks like this \ononda~1\ONON03~1\KIDS\.

I'm running this on XP but could be 3.1,ME,98,2000
WOuld i be better off doing an fcreate of a batch file to create the new directory?
Thanks

RE: FPD 2.5b and Extended Error 183 when creating a directory

Quote:


WOuld i be better off doing an fcreate of a batch file to create the new directory?

You can do it in three lines with the File System Object:

CODE

local fso as scripting.filesystemobject
fso=createobject("scripting.filesystemobject")
fso.CreateFolder("c:\my new folder")

If you want to create a tree of folders you have to do it in steps so as each command has something to build on:

CODE

local fso as scripting.filesystemobject
fso=createobject("scripting.filesystemobject")
fso.CreateFolder("c:\another new folder")
fso.CreateFolder("c:\another new folder\and another one")

Geoff Franklin
www.alvechurchdata.co.uk

RE: FPD 2.5b and Extended Error 183 when creating a directory

(OP)
Geoff, thanks but I'm in foxpro for dos version 2.5b and this is a visual solution correct?

RE: FPD 2.5b and Extended Error 183 when creating a directory

Quote:

Geoff, thanks but I'm in foxpro for dos version 2.5b and this is a visual solution correct?

My mistake. You could I suppose call a VBScript program from FPW but it's a bit of a long way round. The VBScript code is very similar to the VFP:

CODE

dim fso
set fso=createobject("scripting.filesystemobject")
fso.CreateFolder("c:\another new folder")
fso.CreateFolder("c:\another new folder\and another one")

and then you run wscript.exe from FPW to call the VBScript:

CODE

run wscript.exe "MakeMyDir.vbs"

You're probably better off sticking with the simplicity of a batch file.

Geoff Franklin
www.alvechurchdata.co.uk

RE: FPD 2.5b and Extended Error 183 when creating a directory

When you execute the 'RUN MD hipaa837 ' statement, are you sure the default folder is set to '\ononda~1\ONON03~1\KIDS\' when the cmd.exe executes?

  -Dave Summers-  
 
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm

RE: FPD 2.5b and Extended Error 183 when creating a directory

Geoff,
in this case try
if adir(aaa, "hipaa837", "D") = 0
    !md hipaa837
endif
    Tesar

RE: FPD 2.5b and Extended Error 183 when creating a directory

You might try the following:

CODE

 mcCmd = "MD C:\ononda~1\ONON03~1\KIDS\hipaa837"
 Run &mcCmd

I tested the above approach.
At first I did not have my directories abbreviated correctly and it did not work.  But once I got them looking like they would in DOS, the test worked fine.

Good Luck,

JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com

RE: FPD 2.5b and Extended Error 183 when creating a directory

(OP)
JRB - I like your suggestion.  A lot cleaner that what I usually do.

Dave - yes i'm always in this folder.

And everyone - guess what it was.  A network issue.  I spent two days chasing ghosts!!!!

Thanks everyone.

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