Jump to content
Server Maintenance This Week. ×

create custom filepaths??!?


VICH

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

Recommended Posts

can you create folders in a designated drive with scripts?

example:

i have a layout where people put in the file name of pictures and first they have to go in to the directory and find where it goes make the folder then put in the file path in the filemaker feild

i want them to be able to put in the file name(just the file name not the path) and it creates and or puts it in the proper folder it goes in

Link to comment
Share on other sites

There is no FM script to do this. But you can use the OS to do it for you.

From the command line you can make a folder with the "mkdir" command.

From inside FM you'd use the Send Event script step and feed it:

cmd /c mkdir c:parentFoldernewFolder

(cmd.exe is the Windows Command Line interpreter, "/c" tells it to quit when done).

Link to comment
Share on other sites

Note though that this is not foolproof: there is no error handling. If you want to confirm that the folder is actually created you'd need split out the Standard Output to a text file and import that, or use a VBscript instead of the command line.

Link to comment
Share on other sites

This topic is 6663 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.