Moon Software Forum
Moon Software Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Discussion Forums
 Backup Magic
 Copiaris - How to return scripts drive letter?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

  Check here to subscribe to this topic.
 
   

T O P I C    R E V I E W
MattsB Posted - 25 January 2015 : 16:25:43
The variable <ScriptPath> returns drive letter with the path: "E:\backup_script\". Is there a way to automatically return only the drive letter?
1   L A T E S T    R E P L I E S    (Newest First)
Ahto/Moon Software Posted - 25 January 2015 : 16:54:03
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">.

Moon Software Forum © Copyright 1996-2011 Moon Software Go To Top Of Page
Snitz Forums 2000