+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    Portland, Oregon
    Posts
    19

    QBASIC (simple problem)

    Hello all.

    Here is the little bit I wrote


    ***************
    LET blah = 0

    LET i = 0
    FOR i = i TO 255

    blah = blah + 1

    OPEN "nbget.bat" FOR APPEND AS #blah
    PRINT #blah, "nbtstat -A ", "10.0.0.", i, ">> results.txt"
    CLOSE

    NEXT i
    ********************

    This is a very very simple deal
    It creates the bat file
    with the line
    nbtstat -A 10.0.0. 1 >> results.txt


    I lack any docs so I have very little reference material (just what i've found on the web).
    My plea is this
    How do I make
    PRINT #blah, "nbtstat -A ", "10.0.0.", i, ">> results.txt"

    so in the string spit out there are not any spaces in between the strings/variables in the file it creates unless I want them
    ("i.e. 10.0.0. 1")
    (I want it to read "10.0.0.1")

    Thanks for any help.

  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    46
    replace PRINT with this
    PRINT #blah, "nbtstat -A ", "10.0.0." & i & " >> results.txt"

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Location
    Bangor, ME, USA
    Posts
    15
    In VB we use a semicolon between variables when we want to to print to the next available space, and a comma when we want to print to the next available section.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke