Routine - want to use DOS's MOVE command

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
virupakshagm
Participant
Posts: 18
Joined: Tue Dec 18, 2007 5:25 am
Location: Bangalore

Routine - want to use DOS's MOVE command

Post by virupakshagm »

Hi,

I have 3 parameters in routine and i want to use these params to use inside routine.

3 params:
src dir , filename , tgt dir

My expectation:

Move c:\ak.txt c:\tgt\

srcdir = c:\
filename = ak.txt
tgtdir = c:\tgt

I want to make use of this command MOVE and wanna move the files.

Please post the exact syntax, if anyone come across. ( MOVE comand)

Thanks
Viru
MarkB
Premium Member
Premium Member
Posts: 95
Joined: Fri Oct 27, 2006 9:13 am

Post by MarkB »

On 'DOS' it is not MOVE but mv. In Windows, go to Accessories and Command prompt and type help mv - you'll get all of the information you need.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, in DOS it is 'move' while in UNIX it is 'mv'. :wink:

Go to a DOS / cmd prompt and type "move /?" for help on the command.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

Re: Routine - want to use DOS's MOVE command

Post by Pierre »

virupakshagm wrote:Hi,

I have 3 parameters in routine and i want to use these params to use inside routine.

3 params:
src dir , filename , tgt dir

My expectation:

Move c:\ak.txt c:\tgt\

srcdir = c:\
filename = ak.txt
tgtdir = c:\tgt

I want to make use of this command MOVE and wanna move the files.

Please post the exact syntax, if anyone come across. ( MOVE comand)

Thanks
Viru
MOVE /-Y srcdir\filename tgt
Felix qui potuit rerum cognoscere causas. Virgile (Géorgiques).
MarkB
Premium Member
Premium Member
Posts: 95
Joined: Fri Oct 27, 2006 9:13 am

Post by MarkB »

chulett wrote:Actually, in DOS it is 'move' while in UNIX it is 'mv'. :wink:

Go to a DOS / cmd prompt and type "move /?" for help on the command.
Oops - darn that MKS Toolkit ....

Anyway, what he said - the full syntax is there when you ask for help at the command prompt ...
Post Reply