RE: long filenames under ex.exx

new topic     » topic index » view thread      » older message » newer message

petelomax at blueyonder.co.uk wrote:
> On Fri, 22 Feb 2002 22:34:13 +0000, Al Gonzalez <alg at nomscon.com>
> wrote:
> 
> >
> >Hi all,
> >
> >I am writing a small command line utility that will take a folder alias, 
> >>look up the path to that folder and either cd to that folder or launch 
> >explorer at that folder.
> >
> >The explorer part works fine the cd part is giving me an error with long 
> >>filenames. I am running it using ex.exe instead of exw.exe so that the 
> >work will happen in my current dos session.
> >
> >   system("cd c:\\program files", 2) results in 
> >   Too many parameters - files
> >
> >   system("cd \"c:\\program files\"", 2) results in 
> >   Parameter format not correct -  "c:\program
> >
> >Any suggestion would be appreciated.
> >
> Try "c:\\progra~1". This is what the dos dir command lists the file
> as.
> 
> Pete
> 

Yeah, thanks Pete. I had tried that, but I was hoping the aliased 
folders could be stored as long filenames since not everyone knows how 
to determine what the short name is.

BTW by alias, I mean a short hand is used in place of the longer path. 
i.e. go pf would go to the Program Files folder. 

Al

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu