Page 1 of 1
bat to script questions
Posted: 08 May 2022 21:20
by yogi
hello, can someone help me translate this batch into xys??? thank you
@echo off
FOR %%i IN ("*.exe") DO (
start "" /D "%~dp0" /WAIT "%%i" /VERYSILENT /PORTABLE=1
move "%~dp0%%~i" "%~dp0_Archive"
)
it is to launch a silent portable application installation and store the .exe installation file in an archive folder.
thanks for all !!!
Re: bat to script questions
Posted: 09 May 2022 13:00
by yogi
impossible to help me???? PLEASE
Re: bat to script questions
Posted: 09 May 2022 13:03
by admin
I'd start with the Help file.
Re: bat to script questions
Posted: 09 May 2022 13:07
by yogi
thank you! but in fact I am not a programmer at all, and I do not know what term to look for in fact, on the other hand, according to you, can it be done??? I am ready to look at the thing but just to be guided in my research.
Re: bat to script questions
Posted: 09 May 2022 13:11
by admin
How many EXE do you have to install?
Re: bat to script questions
Posted: 09 May 2022 13:13
by highend
Re: bat to script questions
Posted: 09 May 2022 13:17
by yogi
currently 2 but this may vary. but the batch does not take care of the numbers but just of the extension. no matter how many
Re: bat to script questions
Posted: 09 May 2022 13:19
by yogi
ok thank you for your answers, I promise that I look on my side, and if I do not succeed with my examples you can help me??? no kidding!!!
Re: bat to script questions
Posted: 09 May 2022 13:21
by admin
2. Just do it manually. Repetitive work is relaxing. Start thinking about batch jobs when it's more than 42.
Re: bat to script questions
Posted: 09 May 2022 15:15
by yogi
desole but I capitulate, I do not understand anything, it is not my business t I have no one to explain me
Re: bat to script questions
Posted: 09 May 2022 15:49
by WirlyWirly
From reading your posts, I think you would be someone who would find programming very useful in your daily life.
My advice would be to take a weekend and learn the basics. Once you start thinking like a programmer, you'll be able to read code like words out of a book.
If you've never programmed, I would recommend the Python language. It's very intuitive, easy to read, and Incredibly powerful. You can make simple scripts or build entire websites using it.
My first programming book was Python Crash Course, which I highly recommend. It focuses on establishing a strong foundation and good habits to build on, which apply not only to python but all programming languages.
There's nothing wrong with jumping right into a project, but I wouldn't recommend jumping into the deep end of the pool without at least learning how to tread water first.
Re: bat to script questions
Posted: 09 May 2022 19:13
by yogi
Thank you for your answer even if I would have preferred to have the solution! But indeed I am trying to find alternatives to software so as not to have too much. But for the moment I don't have any programming skills. And xyplorer would allow me to group my xys scripted batches in a single interface. And I like portable applications !!!!
Traduit avec DeepL
https://www.deepl.com/app/?utm_medium=android-share
Re: bat to script questions
Posted: 09 May 2022 20:24
by highend
And now do the rest of your scripts yourself...
Code: Select all
$files = quicksearch("*.exe /n");
foreach($file, $files, <crlf>, "e") {
run """$file"" /VERYSILENT /PORTABLE=1", , 1, 0;
}
moveto "<curpath>\_Archive", $files, , 2, 2;
Re: bat to script questions
Posted: 09 May 2022 20:50
by yogi
Thank you. Thank you very much. At the same time of course I'll try to figure out how to get from a bat to an xys. But I'm a cabinet maker and not a computer scientist. But I find that scripts are such a good thing that I ask for them according to my use.
Thanks
Re: bat to script questions
Posted: 09 May 2022 21:00
by yogi
you know I always try to cross several scripts to understand how it works, so it's possible that one day I will make one with my own hands!