anonymous
  • anonymous
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?
Computer Science
schrodinger
  • schrodinger
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
wget echo print grep fgrep maybe ....make a empty file called sorry.sh ...make its permissions 755 and executeable.
rsmith6559
  • rsmith6559
if [ -e /file/name ] then echo "Goodee!" else wget blah blah blah fi
anonymous
  • anonymous
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

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
I don't know anything about scripting on Win myself, but I know that a lot of people use AutoHotkey for writing simple scripts.
anonymous
  • anonymous
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

Looking for something else?

Not the answer you are looking for? Search for more explanations.