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

martin
Site Admin
martin avatar
Joined:
Posts:
29,266
Location:
Prague, Czechia

Re: How to provide dynamic path for script file

So how do you tell which one to use?

Reply with quote

Advertisement

You can post new topics in this forum