Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

SourcePath="(drive or file path)\Files"

$
0
0

New to scripting,  help please.

Need to write a sourcepath statment so whereever the directory is place,  on a cd or a drive the SourcePath automatically is updated

I have need to make the script portable between multiple machines, and can be run from either a cdrom, USB drive or local hard drive.

The script SourcePath="E\files" works well if the usb or cd is maped as E:,  But this is not always the case.  I need the Drive map to chamge automatically in the script.

Can anyone suggest what I need to use to enable this.

Regards

James


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>