How to hidden dos rename

(imported topic written by lukibest)

i have this code :

DOS rename “C:\Windows\LG dir\screen.swf” {lines of file “name.txt” of folder “c:\windows\LG dir”}

how to hidden dos window? waitdetached doesn’t work

(imported comment written by SystemAdmin)

I believe :

runhidden rename “C:\Windows\LG dir\screen.swf” {lines of file “name.txt” of folder “c:\windows\LG dir”}

should work.

e.g. http://forum.bigfix.com/viewtopic.php?pid=2885

(imported comment written by BenKus)

If that doesn’t work, you can try:

waithidden cmd.exe /C rename “C:\Windows\LG dir\screen.swf” {lines of file “name.txt” of folder “c:\windows\LG dir”}

Note that if "lines of file … " returns more than one result, this line will fail with a “relevance substitution error”.

Ben