That part is working great. The only problem is that when it downloads a new file, it overwrites the existing file. I need the files kept for archiving purposes. I need a batch file that will run before WinSCP that will find the particular filename, and increment a number onto it. Here is the code I already have, based upon this thread already on Spiceworks. I didnt want to resurrect a 2yr old post.
It would also give you an instant indication of when the file was created. You can then use the filename in your ftp command. The second set statement removes any spaces and appends. Connect and share knowledge within a single location that is structured and easy to search. With reference to increment folder name link , I want to ask how to change it from creating folder to creating text file? So it works like this.
But how can I change it from folder to text file? But this does not work as it will only output " Bye" into hello Question title is about ' Increment text filename using batch script ', so I dropped the timestamp in filename and just increment the name. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Asked 7 years, 6 months ago. Active 5 years, 10 months ago. To continue this discussion, please ask a new question. Which of the following retains the information it's storing when the system power is turned off? Submit ». Get answers from your peers along with millions of IT pros who visit Spiceworks. Best Answer. First the party line, "Why are you not using powershell? View this "Best Answer" in the replies below ».
0コメント