Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6010 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way to make a script that will make a folder on windows and name it something custom from the database?

ie: (Full Name) (Policy Number)

Posted

Go here:

http://www.databasepros.com/resources.html

and search for 'folder 2' and download the windows version of the file. Should give you some ideas.

Posted

Thank you for the Link --- funny thing it makes a zip file not a folder but it may still work --- do yo know of any other links that I could look at to make a new folder on the desktop? Of course with a custom name from filemaker?

Thank you,

Joseph

Posted

There is another way, no plug-in, no problem.

Filemaker (on windows) has a Nifty little script step call "Send Event" that sends commands to the run line of windows. From the run line you can do all sorts of things including creating folders and paths. Attached is a sample of this. I have attached the "send event" script step to a button and it will create a folder with the name and path that you choose.

CreateFolder.zip

Posted

I just went through this and found , on the forum, the VBScript Repository. It is a database of every conceivable, in my ability to conceive, VBScript. Here's one to create a new folder:

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFolder = objFSO.CreateFolder("C:FSO")

However, I like Al's example as you can chose your folder path and name and do not have to hard code it. Since I'm not a VB Guru (Not even a novice) this gives more flexibility. Perhaps someone with more VB knowledge can tell us how to create the folder name from a variable?

Posted

Hi aholtzapfel,

It is a good idea creating a Folder without plugin. Your way is using "send event." But, can we capture the error from "send event," for example, if the folder is already exists, or the folder cannot be created because of privilege issue?

TIA for your response

Posted

No there is not a way to capture an error using the send event command. It can still be done without a plug-in by creating a vbs script to do it. By using the script you could capture errors, create a text file and write the error to it, then call a Filemaker script to import the text file to get the result of the vbs script. This is a lot more work but is still free (except for your time). There are disadvantages to using VBS and you can run into security issues (as they are often blocked by system administrators). I could throw something together that would do this (4-5hrs to completely build and check a solution) but depending on the number of users that need this and your familiarity with vbs and Filemaker, It may make sense to use a plug-in. If you decide to use VBS I can point you in the right direction.

Posted

Hi aholtzapfel ,

Thank you for your explanation. About VBS Script, I am not the one who ask the question, but I would like to see it happens. If I was not mistaken, aldipalo is the one who asked about VBS.

This topic is 6010 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.