Jonny Quick Posted September 13, 2010 Report Share Posted September 13, 2010 Hello everyone, I am new and have some questions. First, here's the result of pasting an If/End If component of my current script project: <IFOTH:03:1:C:\WINDOWS\system32\cmd.exe><TEXTTYPE:cd C:\Documents and Settings\Administrator\Cookies><TEXTTYPE:del administrator@xxxxx*.txt<ENTER>><TEXTTYPE:del administrator@yyyyy*.txt<ENTER>><ENDIF> Here's what it looks like in English: (Launch a cmd.exe window) If C:\WINDOWS\system32\cmd.exe is on top Texttype "cd C:\Documents and Settings\Administrator\Cookies" Texttype "del xxx*.txt" Texttype "del xxx*.txt" EndIf This is intended to delete certain cookies, but not all of them. The If/EndIf is to make sure the window is active and on top before firing-off a delete command. (Don't want that going off willy-nilly...) My Primary problem is that I cannot get the "Texttype" command to just paste out the text. When I select that switch, all that types is "^V"; there is no text in the clipboard. So I have to type it out manually (slowly) and it looks bad and inelegant. Is it broken, not working but that's normal or am I doing something wrong ? I have other questions, but have just decided to post them in different threads. Thanks in advance. Jonny Quote Link to comment Share on other sites More sharing options...
acantor Posted September 13, 2010 Report Share Posted September 13, 2010 You can't use Ctrl + V to paste in cmd.com. But you can do something like this: Alt + spacebar E (for Edit) P (for Paste) Quote Link to comment Share on other sites More sharing options...
Jonny Quick Posted September 13, 2010 Author Report Share Posted September 13, 2010 You can't use Ctrl + V to paste in cmd.com. But you can do something like this: Alt + spacebar E (for Edit) P (for Paste) Alan, Well here's my true reaction: "WELL DUH NO S^^T !!!!" Of course you can't do that, durh.... Thanks for the help. Makes sense now. Quote Link to comment Share on other sites More sharing options...
acantor Posted September 13, 2010 Report Share Posted September 13, 2010 There is no reason (that I can think of) why the "standard" hotkey for paste shouldn't work in cmd.com. I used Macro Express to assign Ctrl + V to send the sequence of keys for pasting when I am using the console. Quote Link to comment Share on other sites More sharing options...
rberq Posted September 13, 2010 Report Share Posted September 13, 2010 Alt + spacebar E (for Edit) P (for Paste) In all this time using computers, I never knew I could do that. Thank you! As my Dad liked to say, "You learn something every day." He forgot to mention that sometimes you feel really dumb that you hadn't figured it out already. Quote Link to comment Share on other sites More sharing options...
paul Posted September 13, 2010 Report Share Posted September 13, 2010 As my Dad liked to say, "You learn something every day." He forgot to mention that sometimes you feel really dumb that you hadn't figured it out already. Actually, I don't think there's any such thing as a dumb question! And why should you have thought of Alt+spacebar - it's not exactly obvious! Quote Link to comment Share on other sites More sharing options...
acantor Posted September 13, 2010 Report Share Posted September 13, 2010 Alt + space is one of the most useful keyboard shortcuts that I know. I use it dozens a time a day, and it can form the basis for many scripts. Alt + space activates the window's System menu, and virtually every window has a System menu, including applications, documents, dialog boxes, message boxes, and more. Almost any window can be closed by pressing Alt + space, followed by C (for Close). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.