Parameters
Posted: April 9th, 2019, 11:17 am
I'm trying to make a script to run upon download completion to, depending on its location, either run a couple command lines on it then move it or run a single command line on it, but I made a test batch file to write the parameter and environmental parameters I might need to a text file to see what they are exactly, and I've tested it twice and they're all blank. For example, the first line is
and one of the environment variable lines is
and I even tried assigning them to variables first then echoing those. But I just get "1 - " and "SAB_FINAL_NAME - " in the file. What am I doing wrong?
Also, since it only runs on queue finish, and not after each download, does it keep track for each download and run it once for each one? Just seems like it would make more sense to do it after each individual download, especially since sometimes the queue doesn't finish for days if a bigger one is in it.
Of course, even if I get this working, it means it'll flash the command prompt window every time it runs, which I' prefer it didn't. I suspect that would be one of the benefits of a Python script, but I'm unfamiliar with that language. If someone could help write up a script to do what I need, it would be much appreciated.
Code: Select all
echo 1 - %1 >> file
Code: Select all
echo SAB_FINAL_NAME - %SAB_FINAL_NAME% >> file
Also, since it only runs on queue finish, and not after each download, does it keep track for each download and run it once for each one? Just seems like it would make more sense to do it after each individual download, especially since sometimes the queue doesn't finish for days if a bigger one is in it.
Of course, even if I get this working, it means it'll flash the command prompt window every time it runs, which I' prefer it didn't. I suspect that would be one of the benefits of a Python script, but I'm unfamiliar with that language. If someone could help write up a script to do what I need, it would be much appreciated.