File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Really, really stupid question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Really, really stupid question" Watch "Really, really stupid question" New topic

Really, really stupid question

William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Ha, made you look.

Ok so I write a java program compile and run on unix.

Give the program to a co-worker who wants to compile in DOS. They have problems so I try and reproduce them. My problems are of a different nature though.

First I am not able to cd, in DOS, into a directory which has a space in the name. Using an "*" didn't work either. My coworker has no problems doing this.

Next I make a new directory, from within Explorer, with no spaces in the name. Back in DOS I am still not able to cd into it.

Than I create a directory from the DOS prompt, this one I am able to cd into, but Explorer doesn't show this directory?

I have been using unix for 15 years, and I can't handle two simple things in DOS. And I get paid to do this, ha!

So all of your insightfull comments are welcome. Thanks.

Please ignore post, I have no idea what I am talking about.
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Hahaha, I went the other way (Win$/Dos->Linux)...and I only look back when I can't avoid it.

Are you on Win98 etc? I assume you are, seeing you mention "DOS prompt". In this case, I guess the most obvious thing...are you aware of the difference between how DOS and Windows view file names? Do a 'dir' from the DOS prompt. You'll see a column that says something like "MS DOS Name", with entries like "PROGRA~1". You have to use these names to move in DOS. Dos names are 8 chars or less, with no spaces. There are probably other character restrictions I'm not aware of.

As for Explorer not showing a directory created in DOS...I dunno!

If you're on Win2k/XP, ignore me

Hope I didn't state the bleeding obvious,

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Which DOS are you using? Which is the co-worker using? Different ones behave differently. Did you start by choosing "Run ..." or by using the Start button? If you start DOS using "cmd", you'll get a different DOS than if you use "command".

Try cd-ing to the directory by using the first 6 letters of the dir and adding a ~1 on the end (e.g. Program Files becomes Progra~1).

As for Explorer not noticing the new dir, it happens -- sometimes even with a "refresh". Did you try to restart Explorer?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

That was it.
Run --> cmd
Run --> command
Two different versions of DOS (I am on XP). Thanks!
I agree. Here's the link:
subject: Really, really stupid question
It's not a secret anymore!