Code: Select all
GoSub>VerifyFilesPresent1
SRT>VerifyFilesPresent1
GetFileList>D:\BlackCats_Documents\My_Videos\DVD\Adventure\MovieFolder1\VIDEO_TS\*,files
MessageModal>files
Separate>files,;,file_names
MessageModal>Num Files: %file_names_count%
If>file_names_count>0
MessageModal>Has files
Else
MessageModal>Doesn't have files
GoSub>Exit_Script
Endif
END>VerifyFilesPresent1
SRT>Exit_Script
Exit
END>Exit_Script
MessageModal>Start of Second Verification
GoSub>VerifyFilesPresent2
SRT>VerifyFilesPresent2
GetFileList>D:\BlackCats_Documents\My_Videos\DVD\Test\MovieFolder2\VIDEO_TS\*,VideoTSFiles
MessageModal>VideoTSFiles
Separate>VideoTSFiles,;,VideoTSFile_names
MessageModal>Num Files: %VideoTSFile_names_count%
If>file_names_count>0
MessageModal>Has files
Else
MessageModal>Movie Files do not exist-Process Cancelled
GoSub>Exit_Script
Endif
END>VerifyFilesPresent2
It seems that the subroutine calling VerifyFilesPresent2 is affecting its output. Below is the version where I'm having problems:
Code: Select all
SRT>Find_Movie_Directory
Let>GFL_TYPE=1
GetFileList>D:\BlackCats_Documents\My_Videos\DVD\*,files
MessageModal>files
Separate>files,;,file_names
MessageModal>Num Files: %file_names_count%
If>file_names_count=0,end
Let>k=0
Repeat>k
Let>k=k+1
ChangeDirectory>file_names_%k%
MessageModal>file_names_%k%
IfDirExists>MovieFolder2
ChangeDirectory>MovieFolder2
Let>varMoviePathToGenre=file_names_%k%
Let>varMoviePathToMovie=%varMoviePathToGenre%\%varMovieName%
//MessageModal>varMoviePathToGenre
//GoSub>CheckExistenceMobileMovieFile_mp4_Extension
//GoSub>CheckExistenceVIDEO_TSDirectory
GoSub>VerifyFilesPresent2
GoTo>end
Else
Endif
Until>k,file_names_count
Label>end
END>Find_Movie_Directory
SRT>VerifyFilesPresent2
GetFileList>D:\BlackCats_Documents\My_Videos\DVD\Test\MovieFolder2\VIDEO_TS\*,VideoTSFiles
MessageModal>VideoTSFiles
Separate>VideoTSFiles,;,VideoTSFile_names
MessageModal>Num Files: %VideoTSFile_names_count%
If>file_names_count>0
MessageModal>Has files
Else
MessageModal>Movie Files do not exist-Process Cancelled
GoSub>Exit_Script
Endif
END>VerifyFilesPresent2
I'm not sure what I am doing wrong. Does it have to do with the fact that I changed the directory in the first subroutine?