Dbmaint os error

I am trying to rename a column using dbmaint but am getting an os error.

\d .osWIN:.z.o inw32w64pth:{p:$[10h=type x;x;string x];if[WIN;p[where"/"=p]:"\\"];(":"=first p)_ p}cpy:{system$[WIN;"copy /v /z ";"cp "],pth[x]," ",pth y}del:{system$[WIN;"del ";"rm "],pth x}ren:{system$[WIN;"ren ";"mv "],pth[x]," ",pth y}here:{hsym$system$[WIN;“cd”;“pwd”]}\d .`

renamecol:{[dbdir;table;oldname;newname] / renamecol[:/k4/data/taq;trade;woz;iz] if[not validcolname newname;' sv newname,invalid.newname]; rename1col[;oldname;newname]each allpaths[dbdir;table];}

rename1col:{[tabledir;oldname;newname] if[(oldname in ac)and not newname in ac:allcols tabledir; stdout"renaming ",(string oldname)," to ",(string newname)," in ",string tabledir; .os.ren[ sv tabledir,oldname; sv tabledir,newname];@[tabledir;.d;:;.[ac;where ac=oldname;:;newname]]]}

Anyone have any ideas?  I think the .os.ren is causing it.  I have used other dbmaint functions without issue.

Which operating system?

Do you have the requisite permissions to rename the file?

Using Windows 8.1

Yes I have permissions

Seems ren on windows doesn’t like a path being specified for the target.

Using move should fix this,

i.e.

.os.ren:{system$[WIN;"move ";"mv “],pth,” ",pth y}

Yea works, Thanks!