Database Administration (MOSC)

MOSC Banner

Batch File

edited Apr 17, 2015 10:00AM in Database Administration (MOSC) 1 commentAnswered

Hi All,

I have a requirement to create a batch file to transfer a file from local to apps server. I have written a batch script but its not working. Please find the batch script below and help me to resolve it.

Batch file

-------------

@echo off

:INPUT

set INPUT=

set /P INPUT=File Name: %=%

if "%INPUT%"=="" goto input

echo Upload file : %INPUT%

winscp.com /command "option batch on"

winscp.com /command "option confirm off"

winscp.com /command "open sftp:appltst5:appltst5@10.10.92.82"

winscp.com /command "cd /vol02/TST5/apps/apps_st/appl/hfx/12.0.0/bin"

winscp.com /command "lcd "C:\FIN\ARCustomer\data""

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center