RogerRabbitsClone 0 Posted September 22, 2010 my goal is to create a folder on my desktop with somebodys name and the date, like "george 092210". or as plan b, use inputbox so i could type it my self. but my question is, can i use variables with dircreate? i tried to execute this and it didnt create the folder. i removed the "& $name" and it did. do i have to use clipput for this? $name = clipget() DirCreate ("C:\Documents and Settings\dtpstaff\Desktop\bc" & $name) here is the whole thing: ;-------------------first name find text-------------------- WinActivate ("[class:Notepad]") WinWaitActive ("[CLASS:Notepad]") send ("{altdown}") send ("E") send ("F") send ("{ALTUP}") send ("!N") send ("FIRST name") send ("!F") if Winactive ("Find") then send ("{esc}") send ("{right}") send ("{SHIFTDOWN}") send ("{down}") send ("{shiftup}") send ("^C") ENDIF $name = clipget() DirCreate ("C:\Documents and Settings\dtpstaff\Desktop\bc" & $name) <--a good way to start you day Share this post Link to post Share on other sites
Varian 8 Posted September 22, 2010 Yes you can..make sure that you have a "\" between you path and your folder name, however.DirCreate(@DesktopDir & '\' & $Name) Share this post Link to post Share on other sites
RogerRabbitsClone 0 Posted September 22, 2010 thank you thank you thank you. the simplicity kills me. <--a good way to start you day Share this post Link to post Share on other sites