[BUG] changing folder using CD /<folder name>

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
zfiser
New Member
New Member
Posts: 1
Joined: 2005-11-15, 14:21 UTC

[BUG] changing folder using CD /<folder name>

Post by *zfiser »

in root folder type in: cd /<folder name> It will change all right, but it shows c:\/<foldername> in current Current directory. While it seems everything is OK, it causes trouble e.g. you can't open a file after you search for it and click "View" in the find dialog box.

to reproduce problem:
- go to root of a drive (e.g. C:\)
- type in cd /windows in command line
- (notice the c:\/windows in the current directory above file list)
- type cd /system32 in the command line
- (notice the c:\/windows\/system32 in the current directory)
- press Alt-F7 (find file)
- type in any file name that exist in the folder, e.g. setup.bmp
- in Search results, select a file and click View - nothing happens, same if you click Go to file
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

Confirmed

TC 6.53
Win XP SP2
Registered user #92105
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Confirmed for WinXP HE SP1

Not confirmed for Win98 SE... after entering "cd /windows" the hourglass is shown for a few seconds, that's all (current dir will not change, is still "c:\")

TC 6.53 on both OS
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

@zfiser: sorry aber the bug is in you?
why use linux syntax on a windows system ? :D
cd /<somewhere> = *unix
cd \<somewhereelse> = WinOS

same as Sheepdog here
first cd /<linux> works, second doenst do anything
but I still cant edit, view all the files

OS: XP Pro, SP2, German with TC6.53
Last edited by Sir_SiLvA on 2005-11-15, 17:48 UTC, edited 1 time in total.
Hoecker sie sind raus!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: [BUG] changing folder using CD /<folder name>

Post by *Sheepdog »

zfiser wrote:to reproduce problem:
- go to root of a drive (e.g. C:\)
- type in cd /windows in command line
- (notice the c:\/windows in the current directory above file list)
Here I get "C:\/Windows/*.*"
]
- type cd /system32 in the command line

Here happens nothing. XP simply refuses to switch to system32.
Enter on the system32 or even cd system32 works fine.

Search works here fine and I can dispay and access all files - although I cannot switch to the "c:\/windows\/system32/".

The trouble is that the "/" is in the windows filesystem a 'not alowed' character. Since it is the delimiter under Unix filesystems and for FTP M$ decided to accept the "/" as delimiter under XP too. Former versions did not support the "/" as delimiter (don't know about W2000).

So it is a bit difficoult to handle the "/". You can test it by openening a DOS window and trying to "cd /anypath". It will work fine.


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm the behaviour that sheepdog experiences, but not zfiser's behaviour.

Win XP Home SP2, TC 6.53
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.0 will support forward slashes in the cd command. It seems that Windows NT/2000/XP supports them, probably because of the Posix compatibility mode built into these systems, while Windows 9x doesn't.
Author of Total Commander
https://www.ghisler.com
Post Reply