Source language: Translate to:

How to open a directory ?

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

How to open a directory ?

Postby UltraVox » Fri Nov 15, 2013 3:39 am

Hello all,

I am looking for a command (or a plugin) that opens a specific directory in Windows.
Do you know of a method ?

Thanks all.
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: How to open a directory ?

Postby dec » Fri Nov 15, 2013 3:57 am

Hello,

If what you wanted is to shown an specific directory into an Explorer window then you can use the "Run" action:

Code: Select all
.Shown the publication directory
Run "[PubDir]" "" "Normal" "" ""
.
Enhance your NeoBook applications!
.
57 plugins, 1113 actions and 230 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Re: How to open a directory ?

Postby Gaev » Fri Nov 15, 2013 4:28 am

UltraVox:
I am looking for a command (or a plugin) that opens a specific directory in Windows.
I am not sure what you mean by "open a directory".

In other platforms, you "open a file" before you can read or write its contents ... in NeoBook, you just use FileRead and FileWrite ... as well as FileInsline and FileDelline ... and NeoBook does the open/close for you.

With folders, there is no concept of open/close ... but a couple of NeoBook commands that might be of use are FileList and FolderBox.

You might also check out FolderExists, CreateFolder and RemoveFolder.

And along the lines of dec's suggestion, you can also run a DOS command dir ... and have its output redirected to a local file ... whose contents you can then read into a NeoBook variable.

If there is something else you wanted to do with folders, please elaborate.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: How to open a directory ?

Postby UltraVox » Fri Nov 15, 2013 4:31 am

Error message : "Access denied."
Hum ... a problem with the Windows administration / autorization ?

Thanks for your help.
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: How to open a directory ?

Postby UltraVox » Fri Nov 15, 2013 4:35 am

I just want to open the "ImagesTest" folder on my computer desktop. Like when I double-click it to open.

It is stored in the variable [ConvertionDirectory].
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: How to open a directory ?

Postby UltraVox » Fri Nov 15, 2013 4:40 am

OK that's good!
You just had to add \ after the variable: [ConvertionDirectory]\

Thank you all ;)
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 0 guests

cron