RogerRabbitsClone Posted September 22, 2010 Share 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 Link to comment Share on other sites More sharing options...
Varian Posted September 22, 2010 Share Posted September 22, 2010 Yes you can..make sure that you have a "\" between you path and your folder name, however.DirCreate(@DesktopDir & '\' & $Name) Link to comment Share on other sites More sharing options...
RogerRabbitsClone Posted September 22, 2010 Author Share Posted September 22, 2010 thank you thank you thank you. the simplicity kills me. <--a good way to start you day Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now