Jump to content

Spaces in batch?


Tzar

Recommended Posts

So im makeing a file in batch that if needed will add itself to the allusers startup folder. However it seems that i cannot get the spaces in to the adress of the folder. Iv tryed all i can think of even %20.

Anyone willing to lend a hand?

Link to comment
Share on other sites

You probably tried this first, but I'm going to ask anyway ...

Have you tried putting quotes around the directory?

For example: "C:Documents and SettingsAll UsersStart MenuProgramsStartupprogram.bat"

or you can always enclose it with quotes:

"c:program filespath torealprogram hereexecutable.exe"

haha, beat ya! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...