Skip 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.

Send Event cmd.exe del

Featured Replies

Hello, I am struggling to make a send event work and I am running out of ideas so a bit of help is needed :)

I have a script which will create a file on the desktop and then email it. After it is created I want the file deleted. Here are the steps of the script which deal with this need:

The first one will create the path and filename to be created and then emailed

Set Variable [$file; Value: "filewin:"&Get ( DesktopPath )&Substitute( GetAsText ( Get ( CurrentDate ));"/";"")&"_Report.pdf"]

The second one will create a variable to be used in cmd as parameter for the del command

Set Variable [$filedelete; Value: Replace ( Substitute(  $file;"/";"\\");0;9;"")]

The last one is the send event step

Send Event ["aevt"; "odoc"; "cmd.exe del " &Quote($filedelete)]

Unfortunately this will not do the delete, I see the cmd window with path positioned on local desktop which I have moved on disk D ( D:\Desktop>).

Using data viewer I can see the value of $filedelete variable is correct, if I copy that value and paste it into cmd window the command will execute correctly.

What am I missing? Maybe I need to send the execute command after the line is send (like pressing enter from keyboard if you run the command from cmd)?

 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.