Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1748

Community Plugins & Addons • Re: RunCommand

$
0
0
Hey, maybe someone here can help me. I'm using RunCommand with cmd to copy and paste a folder. Everything works fine on Rainmeter, the problem is the log.txt file. I decided to use the cmd to create the file and everything works as expected except for the format.

Parameter:

Code:

Parameter=IF NOT EXIST DFLT (echo N && echo %DATE% %TIME% Error:DFLT is missing.>>Log.txt) ELSE (IF NOT EXIST #ROOTCONFIGPATH#Gauges\[#Name] (((Xcopy DFLT #ROOTCONFIGPATH#Gauges\[#Name] /e /h /i /v && echo %DATE% %TIME% [#Name] Gauge successfully created.)>>Log.txt) && echo Y ) ELSE ((echo %DATE% %TIME% Error:[#Name] already exists.>>Log.txt) && echo N ))
Log.txt

Code:

DFLT\Gauge.iniDFLT\HSLiders\HSLiders.iniDFLT\List\List.iniDFLT\Settings\Settings.iniDFLT\Variables\HSLiders.incDFLT\Variables\Settings.inc6 file(s) copied0 7 / 0 1 / 2 0 2 4   1 9 : 1 0 : 4 3 . 6 7   S S D   G a u g e   s u c c e s s f u l l y   c r e a t e d .   DFLT\Gauge.iniDFLT\HSLiders\HSLiders.iniDFLT\List\List.iniDFLT\Settings\Settings.iniDFLT\Variables\HSLiders.incDFLT\Variables\Settings.inc6 file(s) copied  0 7 / 0 1 / 2 0 2 4   1 9 : 1 3 : 3 7 . 4 6   G P U   G a u g e   s u c c e s s f u l l y   c r e a t e d .   DFLT\Gauge.iniDFLT\HSLiders\HSLiders.iniDFLT\List\List.iniDFLT\Settings\Settings.iniDFLT\Variables\HSLiders.incDFLT\Variables\Settings.inc6 file(s) copied0 7 / 0 1 / 2 0 2 4   1 9 : 1 4 : 5 3 . 5 4   M O B O   G a u g e   s u c c e s s f u l l y   c r e a t e d .   0 7 / 0 1 / 2 0 2 4   1 9 : 1 8 : 0 2 . 8 1   E r r o r : S S D   a l r e a d y   e x i s t s .   0 7 / 0 1 / 2 0 2 4   1 9 : 1 8 : 1 7 . 6 8   E r r o r : D F L T   i s   m i s s i n g .   
As you can tell, the echos I created are weirdly spaced. Does anyone know how to fix that?

Statistics: Posted by RicardoTM — Today, 1:28 am



Viewing all articles
Browse latest Browse all 1748

Trending Articles