-
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.
-
replace PRINT with this
PRINT #blah, "nbtstat -A ", "10.0.0." & i & " >> results.txt"
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks