DIR command on x64 system

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

DIR command on x64 system

Post by Jerry Thomas » Fri Jul 19, 2013 6:50 pm

I am trying to get a complete directory listing of all files including those in subfolders but keep getting a n error. Any suggestions?

Code: Select all

//  /S = include subdirectories
//  /B = bare format
Let>RP_WIN64PROCESS=1
Run>Dir C:\Users\*.* /s /b >%DESKTOP_DIR%\TempFileList.txt
When I run this, I get this error:
Error in: FileCheck-Images
Line 102 - Error executing Dir C:\Useres\*.* /s /b
>c:\Users\jerome.thomas\Desktop\TemplFileList.txt
(2:The system cannot find the file specified.). On Win64
if trying to run a 64 bit system process try bypassing file
system redirection with RP_WIN64PROCESS or referring
to SYS_NATIVE.
Thanks,
Jerry

[email protected]

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Jul 19, 2013 7:20 pm

Run>cmd /c Dir C:\Users\*.* /s /b >%DESKTOP_DIR%\TempFileList.txt

You may want to add Let>RP_Wait=1 and Let>RP_Windowmode=0 above the RunProgram> line. Took 30 seconds to run on my computer.

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Post by Jerry Thomas » Fri Jul 19, 2013 7:22 pm

Thanks JRL, that was it!
Thanks,
Jerry

[email protected]

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