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.

win shell command & path

Featured Replies

I am stuck - I just want to let FM rename a pdf-file via a send event script with a calculated cmd-string but can't figure out how to tell win2k that this cmd should rename the file in a special folder eg

"cmd /c move /y c:Documents and SettingsAll UsersDocumentsprinted.pdf c:Documents and SettingsAll UsersDocumentsVariableRcdID.pdf"

This does not work at all but:

If this command is done on root level renaming works:

"cmd /c move /y c:printed.pdf c:VariableRcdID.pdf"

So it has something to do with the path names in the cmd-string - how do I force and tell the cmd to use the right folder locations??

Any Ideas or hints?

I think you will find that the spaces in the Documents and Settings folder name are the cause of the problem. One solution which I have found works on most variations of windows (I do not have Win2000) is to replace Documents and Settings with the old-fashioned DOS name whatever that is on your system - probably Docume~1.

  • 2 months later...

Here's what I do. the command line is VERY picky about where to use quotation marks. Trying to escape these in calculated fields became a nightmare for me, but I finally conquered it. But that's another story...

Here's the shell code that gets fed to the send event step.


cmd /c If not Exist "C:My Documentsdirectory Amy file.pdf" move "C:Documents and SettingsuserDesktopmy file.pdf" "C:My Documentsdirectory Amy file.pdf"

This does the additional job of checking for an existing file in the destination as not to overwrite it. Just strip out the "if not exist "file" " section if you don't want that.

Hope this helps,

--Perren

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.