64 bit related error

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
timle
Pro Scripter
Posts: 96
Joined: Tue Apr 20, 2004 5:53 am

64 bit related error

Post by timle » Wed Sep 03, 2014 5:58 pm

Hello,
I just want to run a simple script to check the directory size but the error keep poping up regarding 64bit. I use the redirection suggested, but the error did not go away

LibFunc>kernel32,Wow64DisableWow64FsRedirection,result,0
Label>CheckSize
Let>RP_WAIT=3
Let>RP_WINDOWMODE=0
Run>"cmd.exe" /c dir "%Source%" >%LogTemp%dirsize8.txt
ReadFile>%LogTemp%dirsize8.txt,data
Separate>data,File(s),data
Separate>%data_2%,bytes,size1
StringReplace>size1_1, ,,size1_1
Wait>%delay%
Run>"cmd.exe" /c dir "%Source%" >%LogTemp%dirsize8.txt
ReadFile>%LogTemp%dirsize8.txt,data
Separate>data,File(s),data
Separate>%data_2%,bytes,size2
StringReplace>size2_1, ,,size2_1
If>%size1_1%=%size2_1%,Continue,CheckSize
//revert File System Redirection
LibFunc>kernel32,Wow64RevertWow64FsRedirection,result,0

attached is the error

thank you

timle
Pro Scripter
Posts: 96
Joined: Tue Apr 20, 2004 5:53 am

Re: 64 bit related error

Post by timle » Wed Sep 03, 2014 6:49 pm

It works when I put the script in the network drive and run from it but will give an error when I run from c: drive

...odd but it works with no problem

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts