batch file

Page 2 of 2 FirstFirst 12

  1. Posts : 161
    windows 7 ultimate x64
    Thread Starter
       #11

    Kaktussoft said:
    Do you want to redirect output or error messages or both? If both.... to same file?

    dir>%userprofile%\desktop\output.txt

    Put that in a bat file and run it. a file output.txt appears on desktop
    i only want redirect the output txt file
    the below code is my batch file:
    Code:
    start WirelessKeyView.exe /stext WirelessKeyView.txt
    now what changes should i do to this codes exactly?
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #12

    Did you see my post on the previous page?
    batch file
      My Computer


  3. Posts : 161
    windows 7 ultimate x64
    Thread Starter
       #13

    UsernameIssues said:
    muiacir said:
    UsernameIssues said:
    Please post the exact code that you tried.
    start WirelessKeyView.exe /stext c:\users\omidreza\desktop\WirelessKeyView.txt
    This application does not support a full path in front of the output file. If you want the txt file to be on your desktop, then move the file named WirelessKeyView.exe to your desktop and try this:

    c:\users\omidreza\desktop\WirelessKeyView.exe /stext WirelessKeyView.txt
    thanks my friend but it works only when the batch file is on desktop.
    when the batch file is for example in C drive and the program in desktop.the txt file will create next to the batch file not in desktop
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #14

    muiacir said:
    Kaktussoft said:
    Do you want to redirect output or error messages or both? If both.... to same file?

    dir>%userprofile%\desktop\output.txt

    Put that in a bat file and run it. a file output.txt appears on desktop
    i only want redirect the output txt file
    the below code is my batch file:
    Code:
    start WirelessKeyView.exe /stext WirelessKeyView.txt
    now what changes should i do to this codes exactly?
    Remove the word "start"
      My Computer


  5. Posts : 161
    windows 7 ultimate x64
    Thread Starter
       #15

    Kaktussoft said:
    muiacir said:
    Kaktussoft said:
    Do you want to redirect output or error messages or both? If both.... to same file?

    dir>%userprofile%\desktop\output.txt

    Put that in a bat file and run it. a file output.txt appears on desktop
    i only want redirect the output txt file
    the below code is my batch file:
    Code:
    start WirelessKeyView.exe /stext WirelessKeyView.txt
    now what changes should i do to this codes exactly?
    Remove the word "start"
    i removed "start" and add "dir>%userprofile%\desktop\output.txt" at the end of my code:
    Code:
    WirelessKeyView.exe /stext WirelessKeyView.txt dir>%userprofile%\desktop\WirelessKeyView.txt
    when run it , it creats WirelessKeyView.txt in desktop(does not have anything) and a txt file with the same name in the C drive near the batch fie(the batch file is near C drive) that has the password of my wireless.
    i want taht the batch file create that .txt file of my wireless password in desktop not near the batch file
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #16

    Code:
    WirelessKeyView.exe /stext  "%userprofile%\desktop\WirelessKeyView.txt"
    That's all you have to do
    Last edited by Kaktussoft; 28 Aug 2012 at 04:52.
      My Computer


  7. Posts : 161
    windows 7 ultimate x64
    Thread Starter
       #17

    Kaktussoft said:
    Code:
    WirelessKeyView.exe /stext  "%userprofile%\desktop\WirelessKeyView.txt
    That's all you have to do
    thanks very mush.it worked.sorry if i i am very Amateur in bathc files.i am learning it.thanks again
      My Computer


  8. Posts : 10,485
    W7 Pro SP1 64bit
       #18

    Kaktussoft said:
    Code:
    WirelessKeyView.exe /stext  "%userprofile%\desktop\WirelessKeyView.txt
    That's all you have to do
    I did not have any luck putting a path in front of the output file.
    batch file

    From what the OP has said - probably going to have to do a
    CD %userprofile%\desktop\
    full path to the EXE /stext WirelessKeyView.txt
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:19.
Find Us