Local drives resource script rewritten