Answered by:
Shortcut target path removes quotes

Question
-
I do not know how to explain it to well, but windows 7 started randomly removed quotes enclosing the path of files on some shortcuts, its not all isolated to one drive.
For example, say i got a shortcut target as
"C:\Example\Ex.exe"
it will rename the target to
C:\Example\Ex.exe
Any parameters after the path don't seem to get passed now if it filters out the quotes.
I do not know how to explain it, I got up made some food, came back, and it started doing it. And it does not all happen to one drive, some shortcuts on that drive work while others remove the quotes, issue is, ones that used to have quotes won't allow me to anymore.
Monday, July 8, 2013 9:53 PM
Answers
-
You do not need any double quotes around a command like yours. Parameters will be processed anyway. What exactly makes you think that the parameters are ignored?
- Proposed as answer by Vincent Wang-MCSC Wednesday, July 10, 2013 7:12 AM
- Marked as answer by Vincent Wang-MCSC Tuesday, July 16, 2013 2:48 AM
Monday, July 8, 2013 10:39 PM
All replies
-
You do not need any double quotes around a command like yours. Parameters will be processed anyway. What exactly makes you think that the parameters are ignored?
- Proposed as answer by Vincent Wang-MCSC Wednesday, July 10, 2013 7:12 AM
- Marked as answer by Vincent Wang-MCSC Tuesday, July 16, 2013 2:48 AM
Monday, July 8, 2013 10:39 PM -
I am having the same problem, except I am trying to run a server.
This is the command: D:\Unturned\Unturned.exe -batchmode -nographics -insucure/Gunny's Server
When it is supposed to look like this: "D:\Unturned\Unturned.exe" -batchmode -nographics -insucure/Gunny's Server
My quotes get deleted and then it just runs Unturned, not the CMD window I'm looking for.
Thursday, December 31, 2015 1:59 PM -
When it is supposed to look like this: "D:\Unturned\Unturned.exe" -batchmode -nographics -insucure/Gunny's Server
My quotes get deleted and then it just runs Unturned, not the CMD window I'm looking for.
If you require a console window then you must say so explicitly, e.g. like so:
cmd.exe /c D:\Unturned\Unturned.exe -batchmode -nographics "-insucure/Gunny's Server" & pause
You do not need any double quotes for the executable but you probably need them for your last parameter. Best to check the help file for unturned.exe.
Thursday, December 31, 2015 2:50 PM -
That does not come close to working in any situation. It needs to be run in batch mode not through command prompt. What he was referring to was the server running in a terminal window. The target ["D:\Unturned\Unturned.exe" -batchmode -nographics -insecure/Gunny's Server] has perfect notation for what he's trying to accomplish, it merely will not allow the quotations to be present like they generally should be even in normal shortcuts.Friday, February 26, 2016 7:20 PM