Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8054095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:04:19+00:00 2026-06-05T08:04:19+00:00

I need reliable way to create %tab% (containing one tab character) for both, Windows

  • 0

I need reliable way to create %tab% (containing one tab character) for both, Windows and XP.

SET TAB=" "

Should work for Windows 7 (not tested) but not for Win XP (tested).

This

for /F "skip=4 delims=pR tokens=1,2" %%a in ( 'reg query hkcu\environment /v temp' ) do set TAB=%%b

works for Win XP only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:04:20+00:00Added an answer on June 5, 2026 at 8:04 am

    You should use an editor which supports TAB characters without changing them to spaces.
    And you should reorder the quotes, as with set TAB=" " you got a variable with three characters.
    TAB contains then also the quotes.

    set "TAB=   "
    

    Currently there seems to be no reliable way to use a program to create a TAB character in all Windows versions on all language platforms.

    But you could also use an embedded Jscript snippet.

    @if (@X)==(@Y) @goto :Dummy @end/* Batch part
    
    @echo off
    SETLOCAL ENABLEEXTENSIONS
    for /f "delims=" %%x in ('cscript //E:JScript //nologo "%~f0"') do set TAB=%%x
    echo Tab character is "%tab%"
    goto :EOF
    
    ***** Now JScript begins *****/
    WScript.Echo(String.fromCharCode(9));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a reliable way to detect how many CPU cores are on a
Need a way for one service on a well-known Endpoint to return strings which
We need a practical way (not just in theory) to start a job in
I need to know a reliable way I can determine the folder that a
I need a reliable messaging framework that runs over http/https (due to client security
Need to choose optimal data structure for fast work with list of locations and
Need some help please with this error : TypeError : 'unicode' object does not
Need to design a simple one for school. More specifically a Moore FSM. Im
Because I need a free and reliable XML editor, I just installed the Netbeans
I need to create an linux application that would do wireless network scanning, put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.