Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FM11: How to delete a file in a windows network folder.

Featured Replies

I want to delete a file from FileMaker in Windows.
I want to send a event from FileMaker to do that.

From the commandprompt I type:

cmd/c del C:UsersTolDesktopinvoice.pdf

 

and that works,

 

but when tried to delete the file in a network drive (P:invoiceinvoices::id.pdf), i put the code

 

"cmd /c del " & Quote ( "P:Invoice "&Invoices::Invoice ID&".pdf") 

 

in the calculation box for the event I get errors and it doesn't work, i can't figure out what am i doing wrong. Any help would be appreciated. Thanks

 

 

post-108466-0-06011200-1362837172_thumb.

The backslash in FileMaker is used to "escape" the next character; that is, inform Filemaker that the next character is a literal character and not a command character.

 

So you have to use another backslash to tell FM that the backslash in the file path is literally a backslash in the string:

 

"cmd /c del P:Invoice "&Invoices::Invoice ID&".pdf" 

 

 

see http://help.filemaker.com/cgi-bin/filemaker.cfg/php/xml_api/cci/fm_show_ans.php?p_faqid=456&p_sid=459394139 for perhaps a clearer explanation.

 
 
PS-- You don't want to use the Quote() function because it places quotation marks around the expression.
  • Author

Hi Doughemi,

 

Thank you very much!!! It's been so long trying to figure this one out. Who would have thought about this "escape" thing. You have a lovely weekend. Hope my thread and your answer will help future users.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.