command line help

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

command line help

Post by timle » Wed Oct 14, 2015 10:00 pm

Hello,
I use this line a lot to check directory for file stabling

let>source=some directory
Run>cmd /c dir "%source%" >%Ltemp%\~dirsizem.txt

but it does not work on window 2012 server, would some one help me

I did this Let>ProgramPath=%systemroot%\SysWOW64\cmd.exe
run>%ProgamPath% /cdir "%source%" >%Ltemp%\~dirsizem.txt

still did not work

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: command line help

Post by Marcus Tettmar » Mon Oct 19, 2015 1:46 pm

What is source directory - maybe that is 64 bit or needs privs?

What does the command window return? It should tell you why it didn't work.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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