spoo Posted January 31, 2019 Share Posted January 31, 2019 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 More sharing options...
FrancescoDiMuro Posted January 31, 2019 Share Posted January 31, 2019 @spoo @ScriptDir is a macro that returns the folder from which the script is ran, so, where shpuld be place your destination folder? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
argumentum Posted January 31, 2019 Share Posted January 31, 2019 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. 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