How to provide dynamic path for script file

Advertisement

kranthi
Guest

How to provide dynamic path for script file

I'm using a batch file to run my script to put file from server to local machine. My batch file is
@echo off
cd \
cd C:\Program Files (x86)\WinSCP

winscp.com /script="C:\Abcd\ xyz .info"


Question is: name of the file(xyz) is dynamic, it changes frequently. How can I mention this in my batch file.

Your response is highly appreciated.
Thanks in advance

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum