Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save DOS output to a text file
Message
De
19/09/2005 12:52:31
 
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01050853
Message ID:
01050914
Vues:
16
Give this a try
Start - Run cmd /c mycommand > myfile



>>>>>Hi everybody,
>>>>>
>>>>>How can I capture DOS output to a text? I typed gpresult in Run command, but DOS window flashes and disappears. I tried it with gpresult >> c:\011\test.txt, but it didn't work.
>>>>>
>>>>>Thanks in advance.
>>>>
>>>>Hi Naomi,
>>>>I just downloaded and installed GPRESULT and when I go to it's instalation folder and type:
>>>>gpresult > c:\test.txt it works :o)
>>>
>>>I tried few times (actually, I also tried with >>) and the file was not created. But then we tried in two steps:
>>>cmd, then the same command and it worked. So, next time I will always use cmd first.
>>
>>Probably you ran into issue with command.com that was used for VFP RUN command in previous Windows versions. Try to find FOXRUN.PIF responsible for this behavior, and change its command line property from COMMAND.COM to CMD.EXE.
>
>Hi Yuri,
>
>I'm not sure, if it has something to do with my problem. I'm not running it from Fox, I was trying to run it from Run command in XP, e.g. Start/Run
>
>However, I'll make this change there just in case.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform