Solved Batch file question

jvuz

New Member
Messages
9
Hi,

I'm writing a small batch file, but it doesn't show everything. Can you help?
Code:
@echo offsetLocal EnableDelayedExpansion
pushd "C:\Users\%username%\Desktop"
type nul > "%hostname% %username%"

I also want to add IP-address (and maybe leave the username out).

Jvuz
 

My Computer

System One

  • OS
    Windows 8

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
What is the purpose of this batch file?
 

My Computer

System One

  • OS
    Windows 8 Pro Pack x64
    System Manufacturer/Model
    JohnOfE Special
    Other Info
    Too many systems and combinations!
Creating a shortcut with simple info (hostname and if possible IP-address)

I though so.

You're better off with some piece of software to do that, like Rainmeter. It may be hipster software and ridiculously hard to get it looking just the way you want, but it's the way to go.

Or you can just set yourself a static IP address, which is what I do.

Having a file created and automatically named with your current IP address may be a bit much to ask. It will NEVER happen if you're wanting your outside (WAN) IP address.
 

My Computer

System One

  • OS
    Windows 8 Pro Pack x64
    System Manufacturer/Model
    JohnOfE Special
    Other Info
    Too many systems and combinations!
With this code
Code:
@echo offsetLocal EnableDelayedExpansion
pushd "C:\Users\%username%\Desktop"
type nul > %computername%
I have the most important: computername. Which may be enough.
Thanks for the help.

@medab1: Thanks for pointing me to that Google site. I didn't know something like that existed :p
No, seriously. I already searched there, but didn't find it immediately what I needed. I also know Bginfo, I've even used that one, but I wanted something small. Because I wanted some help into the right direction I asked it here, because it's a forum and I thought it was a place to help people, not to ridicule people. But that's my opinion. No hard feelings though.

jvuz
 

My Computer

System One

  • OS
    Windows 8
Back
Top