Jump to content
Server Maintenance This Week. ×

Script to Create Folders


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

Recommended Posts

We are all Windows users with XP, Windows7 and Windows8.

 

I am attempting to complete a script that creates a nest of 1 folder with 3 subfolders on another server. The script will create the folders on my desktop but not on the other drive.

 

Path to location is: http://fdsmsvws01/DIAPP

 

Top Level Folder for example would be: Test One Request

 

Sub Folders would be:

Analyst

Design

Program

 

I have tried changing http: to filewin:, but result was unsuccessful.

 

Currently the users have to remote access to the location.

 

Script steps attached.

 

 

Help would be appreciated.

Jim

post-74345-0-30678000-1415741181_thumb.j

Link to comment
Share on other sites

I don't know much about Windows commands, but I'd say the issue you're having is around quoting.

 

I believe

Quote ( "$Path & $ReqTitle" & "Analyst" )

will return

"$Path & $ReqTitleAnalyst"

 

You probably want something like:

Quote ( $Path & $ReqTitle & "Analyst" )

 

I recommend loading each filepath into a variable before using Send Event so you can trouble shoot either with a Data Viewer (if you have Advanced) or Custom Dialogs.

Link to comment
Share on other sites

Either a Mapped Drive and the info here: http://fmrift.wordpress.com/2010/02/03/creating-a-folder-from-filemaker-windows/

 

Or you could look at using VBScript. Export a file and open it. The VBScript works well, and gives you some more flexibility. In the comments in the above post, I reference using VBScript. I believe it was based on a post that Wim Decorte had made.

Link to comment
Share on other sites

 

 

Path to location is: http://fdsmsvws01/DIAPP

 

 

 

 

Wrong protocol.  Just because that path is available through HTTP does not make it available for you on the regular Windows OS protocols.  That folder would have be shared through the OS on the server level so that you can target it through a mapped drive as mentioned before, or directly through the UNC path: //serverNameOrIP/shareName/

Link to comment
Share on other sites

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