# \#vbscript

**URL:** https://resource.dopus.com/tag/vbscript/22.md?page=1

[Latest](https://resource.dopus.com/latest.md) · [Categories](https://resource.dopus.com/categories.md) · [Tags](https://resource.dopus.com/tags.md)

**Page:** 2

---

## [Excel Sheets in a column](https://resource.dopus.com/t/excel-sheets-in-a-column/41578)

<div class="topic-metadata">

**Author:** [@Rensheta](https://resource.dopus.com/u/Rensheta)\
**Replies:** 0\
**Last updated:** [June 27, 2022, 4:20am UTC](https://resource.dopus.com/t/excel-sheets-in-a-column/41578 "2022-06-27T04:20:52Z")

</div>

I can't see a use for this and I wrote it. :smile: Not a good way to start. I did it as an exercise and if it helps anyone else, that is a good thing. Also if anyone can improve it, go for it including any correction. …

---

## [Improved Add Favorite button - Add all selected items](https://resource.dopus.com/t/improved-add-favorite-button-add-all-selected-items/41197)

<div class="topic-metadata">

**Author:** [@drventure](https://resource.dopus.com/u/drventure)\
**Replies:** 0\
**Last updated:** [May 6, 2022, 9:36pm UTC](https://resource.dopus.com/t/improved-add-favorite-button-add-all-selected-items/41197 "2022-05-06T21:36:55Z")

</div>

The Default Add Favorite button is set to simply pop up the ADDDIALOG, which is ok, but we can do better! :slight\_smile: Here's a replacement that will add ALL SELECTED files and folders as favorites, or, if nothing is …

---

## [Blob.CopyFrom Method,Type default not Unicode](https://resource.dopus.com/t/blob-copyfrom-method-type-default-not-unicode/40642)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 1\
**Last updated:** [February 24, 2022, 11:25am UTC](https://resource.dopus.com/t/blob-copyfrom-method-type-default-not-unicode/40642 "2022-02-24T11:25:21Z")

</div>

Opus Manual: As well as copying from another Blob , you can use this method to initialise a Blob from a string. By default the Blob will be set to the Unicode form of the string; if you pass "utf8" as the second parame…

---

## [Command: Add cover art to selection](https://resource.dopus.com/t/command-add-cover-art-to-selection/20339)

<div class="topic-metadata">

**Author:** [@AlbatorV](https://resource.dopus.com/u/AlbatorV)\
**Replies:** 1\
**Last updated:** [January 28, 2022, 3:22pm UTC](https://resource.dopus.com/t/command-add-cover-art-to-selection/20339 "2022-01-28T15:22:32Z")

</div>

I create these commands to add one or more cover art to selected mp3 by button/hotkey. Command AddJpgFromClipboardToMp3: This command add jpg from clipboard to selected mp3. You have jpg files to the clipboard. You se…

---

## [How do I iterate through items right-click-drag-and-dropped context menu items?](https://resource.dopus.com/t/how-do-i-iterate-through-items-right-click-drag-and-dropped-context-menu-items/40229)

<div class="topic-metadata">

**Author:** [@cwm9](https://resource.dopus.com/u/cwm9)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 5:23pm UTC](https://resource.dopus.com/t/how-do-i-iterate-through-items-right-click-drag-and-dropped-context-menu-items/40229 "2022-01-05T17:23:03Z")

</div>

When files are simply left-click dragged from one tab to another, I have no problem iterating the list via data.sourcetab.selected\_files(i). But if I select files and then right-click-drag them, I cannot use data.source…

---

## [Variable arguments in RunCommand](https://resource.dopus.com/t/variable-arguments-in-runcommand/39736)

<div class="topic-metadata">

**Author:** [@Kettenotter](https://resource.dopus.com/u/Kettenotter)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 4:58pm UTC](https://resource.dopus.com/t/variable-arguments-in-runcommand/39736 "2021-11-05T16:58:17Z")

</div>

Hi I use VBScript and try to make a variable inside a Command. But I don't know how I tried a lot of different things... I want to change the conversion type between png and jpg with a radio button. Her is the important …

---

## [Script command: Send text file content to clipboard](https://resource.dopus.com/t/script-command-send-text-file-content-to-clipboard/37026)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 10\
**Last updated:** [July 10, 2021, 10:03pm UTC](https://resource.dopus.com/t/script-command-send-text-file-content-to-clipboard/37026 "2021-07-10T22:03:43Z")

</div>

Examples: Send the contents of the specified file to the clipboard. CopyContent c:\\test.txt Send the contents of the file with the extension txt in the specified folder to the clipboard. CopyContent c:\\temp PATTERN \*…

---

## [Auto-select certain files when entering certain folders](https://resource.dopus.com/t/auto-select-certain-files-when-entering-certain-folders/20413)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 13\
**Last updated:** [June 23, 2021, 12:33pm UTC](https://resource.dopus.com/t/auto-select-certain-files-when-entering-certain-folders/20413 "2021-06-23T12:33:48Z")

</div>

This script add-in will make Directory Opus automatically select certain files when you go into certain folders. You can configure the script to set the files and folders it reacts to. The folder paths can use wildcards…

---

## [Settings Auto Backup (Normal and USB)](https://resource.dopus.com/t/settings-auto-backup-normal-and-usb/18408)

<div class="topic-metadata">

**Author:** [@YankeeZulu](https://resource.dopus.com/u/YankeeZulu)\
**Replies:** 17\
**Last updated:** [May 4, 2021, 9:19pm UTC](https://resource.dopus.com/t/settings-auto-backup-normal-and-usb/18408 "2021-05-04T21:19:36Z")

</div>

Settings Auto Backup (Normal) Settings Auto Backup.osp (1.81 KB) This script automatically creates backups of DO settings with specified interval in user defined folder. How to use? Copy file Settings Auto Backup.osp …

---

## [Add suffix and move to destination folder](https://resource.dopus.com/t/add-suffix-and-move-to-destination-folder/37558)

<div class="topic-metadata">

**Author:** [@slouw](https://resource.dopus.com/u/slouw)\
**Replies:** 2\
**Last updated:** [January 8, 2021, 4:12pm UTC](https://resource.dopus.com/t/add-suffix-and-move-to-destination-folder/37558 "2021-01-08T16:12:31Z")

</div>

This script when invoked acts on the currently selected files as follows. Dialog pops up as per below. A suffix option can be selected from the pulldown menu. These can be edited in the script to suite. My pulldown…

---

## [Add json processing object](https://resource.dopus.com/t/add-json-processing-object/36731)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 1\
**Last updated:** [September 20, 2020, 7:07am UTC](https://resource.dopus.com/t/add-json-processing-object/36731 "2020-09-20T07:07:35Z")

</div>

Vbscript does not have a method to process json, and hope to add a function to process json data.

---

## [CBX\_Handler: Comic Book Reader](https://resource.dopus.com/t/cbx-handler-comic-book-reader/21737)

<div class="topic-metadata">

**Author:** [@steje](https://resource.dopus.com/u/steje)\
**Replies:** 14\
**Last updated:** [September 15, 2020, 2:29pm UTC](https://resource.dopus.com/t/cbx-handler-comic-book-reader/21737 "2020-09-15T14:29:28Z")

</div>

Note: This script requires Opus 11.16 or above. This script was written in response to a request from JoePerkins in the following discussion, but then further updated to meet my own needs and wants as well as some I 'th…

---

## [Using "DOpus.SetClip" to send UTF8 text to the clipboard will be garbl](https://resource.dopus.com/t/using-dopus-setclip-to-send-utf8-text-to-the-clipboard-will-be-garbl/36520)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 4:28pm UTC](https://resource.dopus.com/t/using-dopus-setclip-to-send-utf8-text-to-the-clipboard-will-be-garbl/36520 "2020-08-28T16:28:46Z")

</div>

Run in CLI 'Copy Content FileName = "D:\\Temp\\test.pas" Dim STools, TextBlob Set STools = DOpus.Create.StringTools With DOpus.FSUtil.OpenFile(FileName) Set TextBlob = .Read() .Close End With FileContent = STools.De…

---

## [Copy File into Today's Version suffix](https://resource.dopus.com/t/copy-file-into-todays-version-suffix/34911)

<div class="topic-metadata">

**Author:** [@Bryan.H](https://resource.dopus.com/u/Bryan.H)\
**Replies:** 18\
**Last updated:** [July 21, 2020, 6:18am UTC](https://resource.dopus.com/t/copy-file-into-todays-version-suffix/34911 "2020-07-21T06:18:30Z")

</div>

In many companies or driven purely by personal wills, you would tend to name your files with #Date\_Version# suffix to make things neat. -- In my case, I will use #yymmdd# or #yyyymmdd#, to make sure files are automa…

---

## [Enhanced "Create Dated Folder", with space removal, Customizable](https://resource.dopus.com/t/enhanced-create-dated-folder-with-space-removal-customizable/36166)

<div class="topic-metadata">

**Author:** [@Bryan.H](https://resource.dopus.com/u/Bryan.H)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 2:19am UTC](https://resource.dopus.com/t/enhanced-create-dated-folder-with-space-removal-customizable/36166 "2020-07-20T02:19:53Z")

</div>

In company server directory, I always try to organized/archive folders in chronological order (YYYYMMDD), but also always avoid space in the file names to avoid Hyperlink breaking while sharing the link. The embedded fe…

---

## [Simple disable button in script](https://resource.dopus.com/t/simple-disable-button-in-script/35947)

<div class="topic-metadata">

**Author:** [@JanosDombi](https://resource.dopus.com/u/JanosDombi)\
**Replies:** 9\
**Last updated:** [June 26, 2020, 10:07am UTC](https://resource.dopus.com/t/simple-disable-button-in-script/35947 "2020-06-26T10:07:53Z")

</div>

Hello! How can I simple disable/enable a menubutton in another script of button? There is no condition or environment status. Thanks!

---

## [How do I get a script collection of items with wildcards](https://resource.dopus.com/t/how-do-i-get-a-script-collection-of-items-with-wildcards/35234)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 4:33am UTC](https://resource.dopus.com/t/how-do-i-get-a-script-collection-of-items-with-wildcards/35234 "2020-04-20T04:33:19Z")

</div>

No help was found in the manual Can it only be added by enumerating all the items in the folder? Function GetItems(Path, Files) Dim cmd Set cmd = DOpus.Create.Command cmd.SetSource Path cmd.RunCommand "Select " & …

---

## [Command: GetHash](https://resource.dopus.com/t/command-gethash/20630)

<div class="topic-metadata">

**Author:** [@qiuqiu](https://resource.dopus.com/u/qiuqiu)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 6:39pm UTC](https://resource.dopus.com/t/command-gethash/20630 "2020-04-15T18:39:22Z")

</div>

This script add-in adds a GetHash command which gets the selected files' hashes and outputs them to a dialog, clipboard, or text file. (Not to be confused with the built-in GetSizes command, which can calculate hashes a…

---

## [Remove characters from selected folder and file names](https://resource.dopus.com/t/remove-characters-from-selected-folder-and-file-names/9503)

<div class="topic-metadata">

**Author:** [@JohnZeman](https://resource.dopus.com/u/JohnZeman)\
**Replies:** 11\
**Last updated:** [April 3, 2020, 5:03am UTC](https://resource.dopus.com/t/remove-characters-from-selected-folder-and-file-names/9503 "2020-04-03T05:03:55Z")

</div>

This button removes a specific number of characters from the selected file and folder names at a point you specify. When the button is clicked, it will present a dialog box where you can specify the position to start re…

---

## ["Extract Cover Art" column and command](https://resource.dopus.com/t/extract-cover-art-column-and-command/18860)

<div class="topic-metadata">

**Author:** [@Jon](https://resource.dopus.com/u/Jon)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 8:05pm UTC](https://resource.dopus.com/t/extract-cover-art-column-and-command/18860 "2020-03-05T20:05:36Z")

</div>

(See Also: This is an alternative “Extract Cover Art” command and column implemented in VBScript using Opus native scripting objects, not requiring any additional software. For a different, but similar script, see Custom…

---

## [Rename Opus installers to include version](https://resource.dopus.com/t/rename-opus-installers-to-include-version/18639)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 6\
**Last updated:** [January 31, 2020, 2:43am UTC](https://resource.dopus.com/t/rename-opus-installers-to-include-version/18639 "2020-01-31T02:43:31Z")

</div>

Overview This rename preset is for people who keep multiple versions of the Opus installers. It automatically adds the Opus version details to the installer filenames. This is an example of how to use the OnGetNewName R…

---

## [Auto-load Thumbnails only in specific folders](https://resource.dopus.com/t/auto-load-thumbnails-only-in-specific-folders/33666)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 2\
**Last updated:** [October 25, 2019, 2:14am UTC](https://resource.dopus.com/t/auto-load-thumbnails-only-in-specific-folders/33666 "2019-10-25T02:14:10Z")

</div>

Overview: The add-in lets you tell Opus to load all thumbnails in specific folders, when you don't want to do so in all folders. It usually only makes sense to install the add-in if you have turned off the Load all thum…

---

## [Close all tabs matching a path wildcard](https://resource.dopus.com/t/close-all-tabs-matching-a-path-wildcard/18172)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 6\
**Last updated:** [September 23, 2019, 12:36pm UTC](https://resource.dopus.com/t/close-all-tabs-matching-a-path-wildcard/18172 "2019-09-23T12:36:06Z")

</div>

Overview This scripts adds a new command to Opus: CloseAllTabs The CloseAllTabs command takes a path or wildcard and will close all folder tabs which match. Listers will be closed entirely if all their tabs match. For …

---

## [1-Click Share File with Outlook, with HTML mail & Signature](https://resource.dopus.com/t/1-click-share-file-with-outlook-with-html-mail-signature/29998)

<div class="topic-metadata">

**Author:** [@Bryan.H](https://resource.dopus.com/u/Bryan.H)\
**Replies:** 12\
**Last updated:** [February 28, 2019, 1:52am UTC](https://resource.dopus.com/t/1-click-share-file-with-outlook-with-html-mail-signature/29998 "2019-02-28T01:52:57Z")

</div>

Normally we'd share a file within Explorer or Dopus using SendTo or Copy SENDMAIL command, but sadly it'll always lead to an Email compiled with plain text describing non-sense and with a Subject prefix un-customizable "…

---

## [Button: Merge Folders v2](https://resource.dopus.com/t/button-merge-folders-v2/22029)

<div class="topic-metadata">

**Author:** [@fred](https://resource.dopus.com/u/fred)\
**Replies:** 7\
**Last updated:** [February 6, 2019, 10:02pm UTC](https://resource.dopus.com/t/button-merge-folders-v2/22029 "2019-02-06T22:02:03Z")

</div>

This button is an update and enhanced version of the original by @leo here. Overview Just select the folders\* you want to merge and press the Merge Folders button to get the dialog. You'll be able to choose one of the s…

---

## [Columns: Macrium Reflect](https://resource.dopus.com/t/columns-macrium-reflect/24278)

<div class="topic-metadata">

**Author:** [@maki](https://resource.dopus.com/u/maki)\
**Replies:** 0\
**Last updated:** [November 29, 2016, 12:55pm UTC](https://resource.dopus.com/t/columns-macrium-reflect/24278 "2016-11-29T12:55:12Z")

</div>

Script for additional http://www.macrium.com/ columns. See also https://resource.dopus.com/t/missing-columns-from-3rd-party-software/24277/1. Installation and use: Download macrium-columns.vbs.txt (930 Bytes). Drag i…

---

## [Column: AvgFileSize](https://resource.dopus.com/t/column-avgfilesize/21775)

<div class="topic-metadata">

**Author:** [@waffles](https://resource.dopus.com/u/waffles)\
**Replies:** 3\
**Last updated:** [November 24, 2018, 7:08pm UTC](https://resource.dopus.com/t/column-avgfilesize/21775 "2018-11-24T19:08:49Z")

</div>

Hi all. This is my first DOpus Add-In. It was born out of this thread. Overview This script creates a new column called AvgFileSize. It displays the average file size within a folder. It looks like this: As you can …

---

## [Rename scripts in JScript, VBScript and PerlScript](https://resource.dopus.com/t/rename-scripts-in-jscript-vbscript-and-perlscript/5480)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 5:00pm UTC](https://resource.dopus.com/t/rename-scripts-in-jscript-vbscript-and-perlscript/5480 "2018-09-21T17:00:46Z")

</div>

Updated Aug 29, 2017, for Directory Opus 12. You do not have to use scripting to batch-rename files in Opus. You can use simple wildcards, find & replace, regular expressions, and so on. Rename scripts are just an optio…

---

## [Script to perform multiple Regular Expressions](https://resource.dopus.com/t/script-to-perform-multiple-regular-expressions/3384)

<div class="topic-metadata">

**Author:** [@Leo](https://resource.dopus.com/u/Leo)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 9:02pm UTC](https://resource.dopus.com/t/script-to-perform-multiple-regular-expressions/3384 "2018-07-17T21:02:14Z")

</div>

Introduction It's fairly common to want to apply several regular expressions to a filename, one after another. While you can do this using several Rename commands in a row, that isn't ideal. Using multiple Rename comma…

---

## [From File rename v3.1](https://resource.dopus.com/t/from-file-rename-v3-1/10224)

<div class="topic-metadata">

**Author:** [@gieron](https://resource.dopus.com/u/gieron)\
**Replies:** 30\
**Last updated:** [April 29, 2018, 1:05pm UTC](https://resource.dopus.com/t/from-file-rename-v3-1/10224 "2018-04-29T13:05:19Z")

</div>

If you are using Directory Opus 12 and above use From clipboard or file rename script 4.0 instead. This rename script takes lines from a user created text file or from clipboard and use them as part of the new file nam…

[Previous page](https://resource.dopus.com/tag/vbscript/22.md?match_all_tags=true&tags%5B%5D=vbscript)

[Next page](https://resource.dopus.com/tag/vbscript/22.md?match_all_tags=true&page=2&tags%5B%5D=vbscript)
