Hi - new to using KiXtart, but been looking at it on and off for a while:

I want to be able to pass a file name and UNC path to the script as a variable $file, archive a copy of the file to an archive folder, and then depending on which directory it can from move it to the relevent remote site. For example, if it came from e:\dropin\london then it goes to the 'London' server, but if it came from the e:\dropin\paris the it goes to the Paris server. I'd like to use a SELECT... CASE startement, but how would I split down the directory? In DOS I can use the variable %~pd1 to pull out the path but how do I do that in KiXtart? I'm no programmer, but can do a little VBS/VB etc. Any assistance greatly appreciated.


Edited by matthewh (2005-08-08 02:07 PM)