wjbzone Posted September 24, 2014 Report Share Posted September 24, 2014 Having problems. This is what I want to do: Create a new folder in the current folder and name the new folder the same as a selected document. Start the macro while in a windows folder and with a document (in that folder) selected. 1. Variable set string %T1% to topmost window title. This sets the variable to the path of the current folder, but if the pathname is over 96 characters it truncates and does not work. Can I increase the length of a variable or is there a better way to obtain the current path? 2. Text Type <F2> this edits the currently select document filename. the part of the name I want to copy is highlighted (in windows7 the filename less the extension is highlighted) 3. Clipboard Copy 4. Variable set string %T2% from the clipboard contents T2 is the name I want to use for the new folder. 5. Create folder %t1%\%t2% This works, but only if the filepath string length (from 1 above) is not too long. Please help with 1 and 5 above. (or is there a better method?) Thanks Billy 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.