mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 101
root66 Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2003
Posts: 101
the identifier $cd works like $mircdir in the sense that you can put text right behind it like $mircdirmirc.exe ... THIS IS VERY ANNOYING. I am doing cd player stuff and I can't even start any of my identifiers with "cd" because of this stupid $cd identifer that I never even use. Why did Khaled have to chose such a common letter combination for an identifier that works this way? I really really hate this.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Its 'cd' because, it refers to the currentdirectory in a fileserver it just so happens that DOS also uses 'cd' for the same reason.

Something tells me Khaled isnt going to rename it just because you want to start an alias with 'cd' when you can stop being so picky and use something else.

Eamonn.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Use $_cd*, problem solved. Breaking backwards compatability with all scripts using $cd so that you can use the exact alias name you want doesn't seem like a good idea does it?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Mar 2003
Posts: 50
C
Babel fish
Offline
Babel fish
C
Joined: Mar 2003
Posts: 50
You can always use a not-so-well-known feature of mirc to solve the problem. Try the following:

alias cd {
;Your code goes here
}

Now, instead of using $cd in your code, try using $.cd or$/cd. Using the identifiers in this way lets mirc know that you want a result returned from your own code vesus mIRC's internal code.

Joined: Feb 2004
Posts: 15
O
Pikka bird
Offline
Pikka bird
O
Joined: Feb 2004
Posts: 15
wow, your on ignorant idvidual, why cant you just use a diffrent alias, he would have to edit his whole program cuse one little lazy baby wants to sue a damn alias, aww poor baby

Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
There is no need for insults, it only starts flame wars. We expect people to be courteous to others at all times smile

Regards,


Mentality/Chris
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Quote:
Its 'cd' because, it refers to the currentdirectory in a fileserver it just so happens that DOS also uses 'cd' for the same reason.


cd in dos means change directory.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
hmm, You are correct actually, 'appologies wink

Eamonn.

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Actually its both

C:\WINDOWS>cd
C:\WINDOWS

C:\WINDOWS>cd ..

C:\>cd
C:\

C:\>


Link Copied to Clipboard