with ⎕nparts, i am in trouble.
i use dropfile event to catch path.
with a text file with extension :
⎕nparts chn
┌→────────────────────────────────────────────┐
│ ┌→───────────────────────────┐ ┌→──┐ ┌→───┐ │
│ │C:\Users\user\Desktop\hazel\│ │nut│ │.txt│ │
│ └────────────────────────────┘ └───┘ └────┘ │
└∊────────────────────────────────────────────┘
with the same text file without extension :
⎕nparts chn
┌→─────────────────────────────────────────┐
│ ┌→───────────────────────────┐ ┌→──┐ ┌⊖┐ │
│ │C:\Users\user\Desktop\hazel\│ │nut│ │ │ │
│ └────────────────────────────┘ └───┘ └─┘ │
└∊─────────────────────────────────────────┘
no soucy.
the path to my work directory is C:\Users\user\Desktop\hazel\
⎕nparts chnthe cut is not really in the good place.
┌→─────────────────────────────────────┐
│ ┌→─────────────────────┐ ┌→────┐ ┌⊖┐ │
│ │C:\Users\user\Desktop\│ │hazel│ │ │ │
│ └──────────────────────┘ └─────┘ └─┘ │
└∊─────────────────────────────────────┘
and ⎕nexists said only if file exist or not.
am i wrong ?
how can i test if it is a file or directory ?
Regards,
Yves