Original message: > I spent 5 hours trying to solve a bug in my script. The request: > system.execute("c:\command.com /c mkdir c:\test") works well. But > system.execute("c:\command.com /c mkdir c:\Esri_test_shapes") makes the > directory "Esri_tes" in c: > > So do anybody have an idea how to make dirs longer than 8 characters? Thanks a lot for the answers. Really sorry for making this sum so late bot I had other kind of works and didn't bother with it. Well, the solutions: Phil Odgen said that command.com works fine in Win95. (I don't have win95 so I can't test it.) Some of the answer said that cmd.exe (in system path) should be used instead of command.com (command.com is DOS's command line processor, it supports 8.3 naming convention only. NT's command line processor is cmd.exe which supports long fienames.) Thanx a lot for: Deno Karapatakis, Mary Howes and Mike Lent. Most answers told to use Windows API call. kernel32.dll has the function to create directories. Juegern Evert sent me a short shample script to show how to use the dll: -------------------- begin of script ------------------- Thedir="Your Dir" ' (example: Thedir ="C:\Windows\nonsens") theDLL=dll.make(filename.FindInSystemSearchPath("kernel32.dll")) Prozedur=dllproc.make(TheDLL,"CreateDirectoryA",#DLLPROC_TYPE_INT32,{#DLLPROC_ TYPE_STR ,#DLLPROC_TYPE_POINTER }) g=Prozedur.call({TheDir,nil}) ---------------------- end of script ------------------- Also secial thanks for P.G.L. van den Beukel's script. This can be called from another script with parameters I also enclose the script Also thanks a lot for Robert van Waasbergen's, Daniel Stockdale's, Mary Howes's and Nick Seigal's helpful answer.