Sign in to follow this  
Followers 0
RogerRabbitsClone

can i use clipget with dircreate

3 posts in this topic

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



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

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0