MSFN Forum: non working and sliding cmd window - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

non working and sliding cmd window "label" command doesnt work. Rate Topic: -----

#1 User is offline   darksimoon 

  • Member
  • PipPip
  • Group: Members
  • Posts: 106
  • Joined: 29-May 05

  Posted 09 August 2005 - 04:04 AM

hello friends :hello:
i wanna use label my HDD by means of a cmd file but it doesnt work. :no: moreover the screen inside cmd window is continiusly sliding. in order to prevent this i have added exit command at the end. but it doesnt exit though. here's my cmd file

========label.cmd=============
echo on
title the partition is being labeled
color 0b

label %systemdrive% SYSTEM

exit
==========================

pls check my label.cmd and tell me what i can do....

thanks in advance :)


#2 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 August 2005 - 06:59 AM

works fine for me on XP here

#3 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,114
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 09 August 2005 - 07:16 AM

It works normally on my system, I would make echo off, like this:
::========label.cmd=============
@echo OFF
title the partition is being labeled
color 0b

label %systemdrive% SYSTEM

exit
::==========================


as I cannot see why you should put a title, change the colour of the window and echo commands, as it is going to run in a fraction of a second.

Maybe you have a problem with the %systemdrive% variable?

Try the following:
::========label.cmd=============
@echo OFF
title the partition is being labeled
color 0b
Set systemdrive
echo Currrent value of systemdrive variable is %systemdrive%

pause

label %systemdrive%

pause

exit
::==========================


This shows the value of %systemdrive% before trying to change label, (Press ctrl-C to abort the batch if value is incorrect) then lets you interactively supply the new name.

jaclaz

#4 User is offline   nakira 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 18-July 04

Posted 09 August 2005 - 05:13 PM

Don't call it "label.cmd", use a different name or it will keep calling itself.

#5 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,114
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 10 August 2005 - 02:51 AM

nakira, on Aug 10 2005, 01:13 AM, said:

Don't call it "label.cmd", use a different name or it will keep calling itself.
<{POST_SNAPBACK}>


Yes, you are right.

I tested it saving it as lb.cmd, just to save some typing, without thinking about it! :D

jaclaz

#6 User is offline   darksimoon 

  • Member
  • PipPip
  • Group: Members
  • Posts: 106
  • Joined: 29-May 05

Posted 10 August 2005 - 09:45 AM

hey mate (nakira)
thank you very much for your solution. its seems a very important point when dealing with cmd files. and it worked this time :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy