Jump to content

Recommended Posts

Posted

Just need to know if it is possible to pass a variable to a comspec line. ie

RunWait,%comspec% attrib -r %notesdata%bookmark.nsf

I get ensure backslashes have been properly used, like the path is wrong.... and the error doesn't show the %NotesPath%

The %comspec% shows up correctly in the error, but again no %notesData% path...

I even try to open CMD.exe then send the keystrokes but none come onto the screen...

is there something I have missed???

Thanks in advance...

CW

Posted

May need quotes around the path name. Does this work?

RunWait,%comspec% attrib -r "%notesdata%bookmark.nsf"

If not, try either:

RunWait,%comspec% attrib -r %notesdata%\\bookmark.nsf

or

RunWait,%comspec% attrib -r "%notesdata%\\bookmark.nsf"

Posted

Sorry, I have made another stupid move, as I am working outside my production script, and forgot that the %notesdata% variable isn't being setup prior to it's calling.....

Now everything works great!!!!

Please forgive! Have a great weekend.

CW

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...