Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Script to rename a file

$
0
0

Hello All,

 

I have some problems to write a script to rename a file on a network path.

 

My script is :

print(exec('cmd', 'rename \\\sapbodsdev2\\input\\test_CRM\\VH_003368_20141101_MI023368.CSV BCK.csv'));

 

Am getting the error :

Function call <exec ( cmd, rename \\sapbodsdev2\input\test_CRM\VH_003368_20141101_MI023368.CSV BCK.csv, 0 ) > failed, due to

error <50306>: <Function <exec> failed to execute program <cmd rename \\sapbodsdev2\input\test_CRM\VH_003368_20141101_MI023368.CSV BCK.csv>. Program terminated with exit code <1>.>.

 

 

Do you have any idea?


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>