Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Creating a shortCut ?

Oct 6, 2012 7:37AM PDT

Hmm...
How come this works:
C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe

But this doesn't:

"C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe ~~~Scratch.txt"

Thanks...vm

Discussion is locked

- Collapse -
Answer
There might be a couple of reasons ...
Oct 6, 2012 9:45AM PDT

but you didn't tell us HOW it is not working.

If you do not already have the file ~~~Scratch.txt in the same directory as the application it won't be found and although the application opens you will get a message box asking if you want to create ~~~Scratch.txt

If you do already have a file named ~~~Scratch.txt in the same directory as AlelPad.exe then this command with the quotes you have is improper syntax "C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe ~~~Scratch.txt" change it to C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe ~~~Scratch.txt (same thing without the quotes)

If ~~~Scratch.txt is located somewhere else include the path to the file in the command line and if the file name and path contains any spaces include quotes AROUND THE FILE NAME INCLUDING PATH as follows-
C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe "C:\Documents and Settings\vmars316\My Documents\~~~Scratch.txt"

If it doesn't include any spaces in the path or file name you do not need the quotes -
C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe C:\AkelPadData\~~~Scratch.txt

If BOTH the path to the application and the path to the file contain spaces then both need to be enclosed within their own quotes -
"C:\Users\vm\Desktop\My Programs\~PortableFreeware.com\AkelPad\AkelPad.exe" "C:\Documents and Settings\vmars316\My Documents\~~~Scratch.txt"

- Collapse -
Ah, without the quotes !
Oct 6, 2012 10:28AM PDT

Thanks Edward,
[quote]
If you do already have a file named ~~~Scratch.txt in the same directory as AlelPad.exe then this command with the quotes you have is improper syntax "C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe ~~~Scratch.txt" change it to C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\AkelPad.exe ~~~Scratch.txt (same thing without the quotes)
[/quote]
The above worked perfectly.
I thought that because there was a space between 'exe ~~~' I need to put it all in quotes.

Thanks...Vernon