added support for relative paths. formatted script and removed functions from inside if statement.
Changed the way the DisableAutoplay switch runs. Now it only changes the registry setting if it the current value is set to "0". then it restores the setting back to the previous value
Update Script name