Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

- Cant enter dos directory?!


  • Please log in to reply
24 replies to this topic

#1 thriftyarek888

thriftyarek888

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 05:18 AM

Hi using win 7.

 

WHen in command prompt I am trying to enter directyory "smart & wealthy as one" but wont let me why!?! Says "systeam cannot find  the path..."

 

 

1.jpg



BC AdBot (Login to Remove)

 


#2 hamluis

hamluis

    Moderator


  • Moderator
  • 55,554 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:08:53 PM

Posted 01 March 2018 - 06:46 AM

I find no data on such directory.

 

Does such exist  when using Explorer view within Windows?

 

Louis



#3 joseibarra

joseibarra

  • Members
  • 1,157 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Downstairs
  • Local time:09:53 PM

Posted 01 March 2018 - 09:44 AM

It's easy to reproduce the problem:

 

[attachment=202608:Untitled.jpg]

 

The ampersand is a special character to the DOS command so that is the problem.

 

[attachment=202610:Untitled.jpg]

 

You can put the path in quotes and it will work or use a wild card:

 

[attachment=202609:Untitled.jpg]


Edited by joseibarra, 01 March 2018 - 09:46 AM.

The mediocre teacher tells. The good teacher explains. The superior teacher demonstrates.


#4 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 01:03 PM

JO second method works. But first does not!

 

So how do I access directories with the "&" that cannot be entered with wild card "*" such as "happy&me". The first method does not work!

 

thanks


Edited by thriftyarek888, 01 March 2018 - 01:12 PM.


#5 joseibarra

joseibarra

  • Members
  • 1,157 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Downstairs
  • Local time:09:53 PM

Posted 01 March 2018 - 05:23 PM

I guess I don't understand the problem from the screenshot you posted initially.

 

Perhaps someone else has a higher end crystal ball than me.

 

FWIW:  I think if you continue to use folder (directory) names with special characters it might result in more difficulties later - use something else and not special characters.


The mediocre teacher tells. The good teacher explains. The superior teacher demonstrates.


#6 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 05:40 PM



I guess I don't understand the problem from the screenshot you posted initially.

 

Perhaps someone else has a higher end crystal ball than me.

 

FWIW:  I think if you continue to use folder (directory) names with special characters it might result in more difficulties later - use something else and not special characters.

Jo you help me a lot. But how do I access directory love&light

 

1.jpg



#7 JohnC_21

JohnC_21

  • Members
  • 23,248 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 01 March 2018 - 06:00 PM

Hello,

Does the command work if you add the ^ before &

cd love^&light


#8 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 06:33 PM

 

Hello,

Does the command work if you add the ^ before &

cd love^&light

Does not work!



#9 JohnC_21

JohnC_21

  • Members
  • 23,248 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 01 March 2018 - 06:43 PM

I missed something on your image. It looks like you are prefacing the directories with a number. Does the following work?

cd "2 love&light"

If the above does not work then try

cd 2 love^&light

Edited by JohnC_21, 01 March 2018 - 06:43 PM.


#10 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 06:53 PM

 

I missed something on your image. It looks like you are prefacing the directories with a number. Does the following work?

cd "2 love&light"

If the above does not work then try

cd 2 love^&light

Both ways dont work!



#11 JohnC_21

JohnC_21

  • Members
  • 23,248 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 01 March 2018 - 06:56 PM

I am out of ideas on this then, sorry.  



#12 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 08:56 PM

I am out of ideas on this then, sorry.  

Please create a directory on your PC with such names smart&happy and see how to enter it? thanks



#13 JohnC_21

JohnC_21

  • Members
  • 23,248 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 01 March 2018 - 09:10 PM

The only way I could create a smart&happy directory was to use the command

md smart^&happy
As you can see from the below commands I was able to cd by using ^ before &.
 
Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation.  All rights reserved.
 
C:\>md demo
 
C:\>cd demo
 
C:\demo>md smart&happy
'happy' is not recognized as an internal or external command,
operable program or batch file.
 
C:\demo>md smart^&happy
 
C:\demo>dir
 Volume in drive C has no label.
 Volume Serial Number is F2AB-FC6C
 
 Directory of C:\demo
 
03/01/2018  09:06 PM    <DIR>          .
03/01/2018  09:06 PM    <DIR>          ..
03/01/2018  09:05 PM    <DIR>          smart&happy
               0 File(s)              0 bytes
               3 Dir(s)  115,792,224,256 bytes free
 
C:\demo>cd smart&happy
The system cannot find the path specified.
'happy' is not recognized as an internal or external command,
operable program or batch file.
 
C:\demo>cd smart^&happy
 
C:\demo\smart&happy>


#14 thriftyarek888

thriftyarek888
  • Topic Starter

  • Members
  • 47 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:53 AM

Posted 01 March 2018 - 09:19 PM

THnaks got that working. Now I am wondering how to enter a directory "1 fun".

 

Any ideas?

 

Those dont work:

 

cd 1 f

cd 1*f

cd 1^*f



#15 DavidLMO

DavidLMO

  • Members
  • 50 posts
  • OFFLINE
  •  
  • Local time:08:53 PM

Posted 01 March 2018 - 10:08 PM

try cd "1^ fun"  or cd "1 fun" should work

 

Best to signify a space in a file name or directory with _ (understore)

e.g. 1_fun or smart_happy since & is considered a special character






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users