Sign in to follow this  
Followers 0
Frontalabotomy

Comspec...

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

Nothing, nada the cmd window just opens and sits there....

any ideas....

CW

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0