Jump to content

How to go one level down from a directory


spoo
 Share

Recommended Posts

Hey guys,

my folder structure is this :

D:\Automation\code\reference file\Pdf

 

$src=@ScriptDir &"\Reference File" &"\" &pdf           --->scriptDir  give "D:\Automation\code"

$des=$src &".."  --->???

DirMove($src, des)

 

i want PDF folder to go to my scriptDir  inside a folder called completed

ie    @scriptDir\completed

 

How do i achieve this task??

 

 

 

Link to comment
Share on other sites

example()
Func example()
    Local $s = @DesktopDir
    ConsoleWrite($s & @CRLF)
    Do
        $s = StringLeft($s, StringInStr($s, "\", 0, -1) -1)
        ConsoleWrite($s & "\compleated" & @CRLF)
    Until StringLen($s) < 4
EndFunc

 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...