CMD and directory of a shortcut

Lilinote

Reputable
Sep 2, 2014
2
0
4,510
Hi there,

I have a question about CMD and the directory :

- I have a file "pic.jpg" in the folder "fold"
- I created a shortcut of this file and move it
- Here is what I wrote in the shortcut : C:\Windows\System32\cmd.exe /c fold\pic.jpg (I use CMD to open the "pic.jpg", my question is not here)

Here is my question = It seems possible to rename the folder "fold" with some points (folder "..." ) or an empty name (folder " " ), but what I have to write in the shortcut ? (I tried C:\Windows\System32\cmd.exe /c ...\pic.jpg but it doesn't work).

Thanks in advance for your help !

L
 

JeckeL

Distinguished
Jul 19, 2009
743
26
19,165
I think you've gotta put quotations around the filename:

_______________________

cd C:\(path)
rename test.txt "___.txt"

_______________________


this will change test.txt to (3 blank spaces).txt
 

Lilinote

Reputable
Sep 2, 2014
2
0
4,510
You mean write on my shortcut :

C:\Windows\System32\cmd.exe /c " \b.jpg" ?

I'm not sure about what you meant ? I want rename the folder, not the files.

Ok, it works ! Thanks again :).