Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/03/2012 in all areas

  1. Mikeman27294, Yes, but it does an entirely different job. Using @RequireAdmin elevates the whole script by demanding that the OS gives it Admin rights via the standard dialog. Your script above is checking that the user is an Admin before running part of the script - it does nothing to help a user who is not logged in as an Admin. If you want to see how the "Run a different script with #RequireAdmin" works - look at how the RunReqAdmin function in Jos' SciTEConfig does its magic (lines 1230 to 1246 in my version). M23
    1 point
  2. Yeah the StringSplit is a bit of a hack but gets the job done and is easy to use for people who want to avoid SRE. If you want to start with regular expressions be sure to check out this website (I recommend you start here with the quickstart), all of it if you can. Learning regex will take you alot longer then a weekend though, trust me There are of course other good resources out there but I suggest you start with that one, it has simple and a bit more advanced examples, but there almost all quite practical and well explained. Good luck and have fun with it. Edit: grammar Edit: link to quickstart
    1 point
×
×
  • Create New...