How do I build a script in windows or GNU/Linux that checks if certain files/programs exist in the machine, and then either apologize to the user or downloads and installs them for theuser if they do not exist?
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
wget echo print grep fgrep maybe ....make a empty file called sorry.sh ...make its permissions 755 and executeable.
if [ -e /file/name ]
wget blah blah blah
Thanks; now I'm automating the whole 'download and install and configure program for my colleagues. Unfortunately, most of my colleagues are using Windows machines, so I must translate the script to Windows :(
What is the cmd.exe/powershell equivalent of commands like grep or wget? I've heard that powershell is more powerful that most UNIX shells like bash, csh, tcsh, etc. so I will keep searching for a solution for my colleagues :D
Not the answer you are looking for? Search for more explanations.
I don't know anything about scripting on Win myself, but I know that a lot of people use AutoHotkey for writing simple scripts.
probably on windows I would look for ftp or http servers to get the files I need and then use print statements pause statement and stuff and develop it using the FTP commands plenty of refrence out there for powershell....but if you want a powerful shell that is fairly simple to use I suggest using Linux....windows tends to be overly complex for my taste when writing complex scripts. Linux can download all the required files for a windows machine put them on say a ftp server or ssh and then a simple windows script can download the required files and print your messages...lots and lots of possibilities