Click to See Complete Forum and Search --> : which language for a simple task


snoop101
December 4th, 2008, 01:07 PM
Hello all

Pretty simple script I need to do that copies a few dir to a usb stick. The catch is, is that one directory will always change depending on the computer im on. I was thinking of making a way to input the dir into a temp file then reading that info and letting the script use that info for that "session". I have done up a simple perl script that copies files.

So two questions I have, is perl going to be perfect for this and also which I cant find is tutorials on how to input the text using the keyboard on the fly.

As you can see im somewhat new to programming so my lingo is a bit off.

PeejAvery
December 4th, 2008, 02:28 PM
The scripting language best for this task will depend on your operating system. If you want to use PERL, you are going to have to install it. However, if you have Windows, you can use VBScript, or BASH/CSH/KSH/TCSH if you have Linux without having to install any additional runtime components.

snoop101
December 4th, 2008, 02:45 PM
There all Windows machines and the main script will be on the usb drive.