burt Posted September 7, 2004 Report Share Posted September 7, 2004 I am a new Macro Express user and I am trying to make a macro which does the following: I have a long list of files say from 0001.txt - 1000.txt I want to make a copy of a certain selected file say 0234.txt with copy/paste and jump back to the file I just selected before copying. All in the same directory. So when I have file 0234.txt selected and I do copy/paste the file is named "Copy of 0234.txt" After that I want to jump back and select file 0234.txt automaticly without scrolling back. This can be done manual to type in 0234 in explorer and the file will be selected (Windows XP). But how can I do this in a macro? I did the following: File 0234.txt is selected in explorer. TEXTTYPE:<F2> TEXTTYPE:<CONTROL>c TEXTTYPE:<ESC> CLIPST2:0:C:\Temp\clip.txt ;now the filename is copied to the clipboard and saved to a file named clip.txt (i'd rather do this in memory, but yet I don't know how to do this) TEXTTYPE:<CONTROL>c TEXTTYPE:<CONTROL>v ; now the selected file is copied to "Copy of 02345.txt" From here it doesn't work as I would like to. I read the filename back to the clipboard and what shuold happen is that the characters from the clipboard must be typed in sequence with a slight delay, because when I do just paste the filename it doesn't gets selected. CLIPF2:2:C:\Temp\clip.txt SPKEY:500 TEXTTYPE:<CONTROL>v I ment here tot read the file name back into the clipboard, put in 500ms delay in the pasted text what's typed in explorer. But this doesn't work and file 0234.txt isn't selected. Any experienced user can give me a hint? How can I manage that the filename from the clipboard is typed in just as I sould do it manually. Thanks, and best regards to all, Burt Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.