totalcmd.exe /O /T c:/tmp opens c:\/tmp/\*.*

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
now
Member
Member
Posts: 181
Joined: 2006-11-01, 08:34 UTC

Post by *now »

We (!?!)’ve already established that the convention is to use backslash.
User avatar
TLis
Member
Member
Posts: 111
Joined: 2004-06-02, 16:48 UTC
Location: Szczecin, Poland

Post by *TLis »

Just curious. What about filesystem plugins, e.g. Ext2? Do they respect the Linux path formation convention or we have to write the paths in a Windows manner?
User avatar
Hacker
Moderator
Moderator
Posts: 13081
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod][OT] posts split to Problems when T.C. has been launched by nnCron.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ibmm
Junior Member
Junior Member
Posts: 40
Joined: 2010-03-10, 10:12 UTC

Post by *ibmm »

Well guys, lets keep the conversation a peaceful way :-)

Both sides have their truth.. Surely, the backslash is an official path separator in Windows. But in fact, Windows provides an increasing support for the forward slash in a path.
We can do (Vista/7)

C:\Windows>cd /temp

So it is worth considering to add forward slash support in TC.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

ibmm wrote:But in fact, Windows provides an increasing support for the forward slash in a path.
We can do (Vista/7)

C:\Windows>cd /temp
Nice example.
Path (computing) wrote:Microsoft Windows: cmd.exe:
/ or \ (note: for CD command, / treated as relative path (same as .\))
So it's an argument not to support the slash as replacement for the backslash :?: :D

Regards
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

HolgerK wrote:
Path (computing) wrote:Microsoft Windows: cmd.exe:
/ or \ (note: for CD command, / treated as relative path (same as .\))
So it's an argument not to support the slash as replacement for the backslash :?: :D
So according to this MS joke we can't just to replace backslashes with forward ones...
User avatar
ibmm
Junior Member
Junior Member
Posts: 40
Joined: 2010-03-10, 10:12 UTC

Post by *ibmm »

Hei, not worth worry indeed: forward slash is now supported in both relative and absolute paths:

c:\Program Files (x86)>cd c:/progra~1

it works
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ibmm wrote:Hei, not worth worry indeed: forward slash is now supported in both relative and absolute paths:

c:\Program Files (x86)>cd c:/progra~1

it works
But it doesn't work when I try to use forward slash instead of backslash as first path character:

Code: Select all

C:\Program Files>cd /temp
This doesn't work!
User avatar
ibmm
Junior Member
Junior Member
Posts: 40
Joined: 2010-03-10, 10:12 UTC

Post by *ibmm »

This feature is _increasingly_ supported in Windows as I mentioned :-)
The command you have cited start working from Vista on. Just for info, i'm currently on Win7 64-bit, - all works fine. As for "/" as a root indicator, on XP it doesn't work. At least it didn't work for me a couple of years ago, so _for XP_ you are quite right.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You're right, in Windows 7 MS removed this joke and command cd /temp opens temp folder in root of current drive.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Yes nice continuation of a joke started with DOS 2.0 (Why is the DOS path character ""?)

A convention is a rule you can rely on in a given environment.
Extending the limits of such rules like "it may work in environment version 6.0 or 6.1 but not in 5.1" just leads to confusion.

In the end you will always come back to the basic rules:
Vista command line wrote:cd \Windows\System32\drivers\etc\
cd /Windows/System32/drivers/etc/
Notepad C:\Windows\System32\drivers\etc\hosts
Notepad C:/Windows/System32/drivers/etc/hosts

Notepad /Windows/System32/drivers/etc/hosts
Notepad \Windows\System32\drivers\etc\hosts
just to avoid the "trial and error" process.

Regards
Holger
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

ghisler(Author) wrote:Indeed forward slashes aren't officially supported in TC, except for F T P.
Not exactly (or unofficially supported).
1) Create an archive of some text files (say, a.txt and b.txt are packed to c.zip);
2) Point the cursor on c.zip;
3) Open the Quickview window (Ctrl+Q);
4) In the Quickview window title you see "c.zip/a.txt".
Note the forward slash rather than the backslash. It is neither FTP nor program key.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Strange. Here (Vista, TC7.50a), I see "a.txt"

Regards
Holger
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Windows 2000 Eng SP3, TC 7.5 - just checked.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Ah, sorry.
I placed the cursor inside the archive on a.txt, not
2) Point the cursor on c.zip;
Now I can confirm the bug :wink:

Regards
Holger
Post Reply