Frontalabotomy Posted January 30, 2004 Share Posted January 30, 2004 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 Link to comment Share on other sites More sharing options...
Valik Posted January 30, 2004 Share Posted January 30, 2004 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" Link to comment Share on other sites More sharing options...
Frontalabotomy Posted January 30, 2004 Author Share Posted January 30, 2004 Nothing, nada the cmd window just opens and sits there.... any ideas.... CW Link to comment Share on other sites More sharing options...
CyberSlug Posted January 30, 2004 Share Posted January 30, 2004 Shouldn't the command be something like "cmd /c attrib"Make sure to get the /c in there somehow. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Frontalabotomy Posted January 30, 2004 Author Share Posted January 30, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts