Moon Software Forum
Moon Software Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 Discussion Forums
 Backup Magic
 Copiaris - How to return scripts drive letter?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


3 Posts

Posted - 25 January 2015 :  16:25:43  Show Profile  Reply with Quote
The variable <ScriptPath> returns drive letter with the path: "E:\backup_script\". Is there a way to automatically return only the drive letter?

Ahto/Moon Software

1201 Posts

Posted - 25 January 2015 :  16:54:03  Show Profile  Visit Ahto/Moon Software's Homepage  Reply with Quote
Currently there is no special variable like <ScriptDrive>, it is worth adding in the future.

However, currently you can achieve similar result by using <Drive> variable with parameter "dir=" or "file=", like:

<drive dir="backup_script">

This will return drive which has folder "backup_script" and is likely the same drive from where you run your script. You can also use "file=" to specify script file name to check for this file.

You can also use "label" or "serial". For example you can name the drive where you copy files as "Backup". Then detect this drive using <Drive label="Backup">.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Moon Software Forum © Copyright 1996-2011 Moon Software Go To Top Of Page
Snitz Forums 2000