infor.com
concierge
infor u
developer portal
Home
Groups
FACTS - Partner Community
Renaming a file on a mapped drive via ProvideX 'rename'
salbritton
Does anyone know definitively if you can rename a file in ProvideX using a mapped drive via WindX session? For example:
rename "[wdx]Q:abc.txt" to "[wdx]Q:def.txt"
I've verified permissions on the source server/folder are Full Control, tried variations on this (rename "[wdx]\{server}{folder}abc.txt..., etc.) to no success.
Any insight/comments/experience with this is appreciated!
Brad Kraft
DSA
Find more posts tagged with
Comments
slonschek
In my testing rename does not honor the [wdx] prefix.
While running providex in a typical server client setup (nthost to server). The rename command did NOT work on a mapped drive local to my pc using the following command:
rename "[wdx]S:myfile","[wdx]S:myfile2"
While running providex locally on my machine the rename DID work to rename the file using the following command:
rename "S:myfile","S:myfile2"
This indicates to me that it is not the file system holding you up, it is providex not honoring the [wdx] prefix.
James
Sequoia Group
Legacy Contributor
Brad,
The reference manual doesn't suggest that [wdx] is supported in the file names. When I tried it, I got an error. I believe you must execute the rename via [wdx] like this:
execute "[wdx]rename ""Q:/abc.txt"" to ""Q:/def.txt""",err=error_trap
Ken Sproul
Pivotal Systems
slonschek
Suprisingly I did find a way around it. The execute command will honor the wdx prefix.
Use the following:
execute "[wdx]rename "+quo+"S:myfile"+quo+","+quo+"S:myfile2"+quo
Just saw Ken's post, he beat me to it.
salbritton
Ken & James,
Thanks!!! That's worked!!
Brad
FordUS_ship_req.pdf
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
ION Connect
ION Workflow
ION API Gateway
Syteline Development
CPQ Discussion Ask a Colleague
Infor Data Fabric
Infor Document Management (IDM)
LN Development
FAQs, How-To, and Best Practices
API Usage