Batch file creation assistance

Hello Experts,

The following command will run from start menu:

\Users\N21\Downloads\bgInfo\Bginfo.exe \Users\N21\Downloads\bgInfo\mybgp.bgi /TIMER:00 /nolicprompt

However, I can't get it to run within a batch file:
@echo off
cd
\Users\N21\Downloads\bgInfo\Bginfo.exe \Users\N21\Downloads\bgInfo\mybgp.bgi /TIMER:00 /nolicprompt

Can someone please show me?

Cheers

Carlton
cpatte7372Asked:
Who is Participating?
 
oBdACommented:
The drive letter is missing, and there's no need for a "cd".
But assuming you're user "N21", you should use %UserProfile% anyway.
And as best practice in general, always put paths in double quotes.
"%UserProfile%\Downloads\bgInfo\Bginfo.exe" "%UserProfile%\Downloads\bgInfo\mybgp.bgi" /TIMER:00 /nolicprompt

Open in new window

0
 
cpatte7372Author Commented:
I've requested that this question be deleted for the following reason:

Sorted it out myself
0
 
cpatte7372Author Commented:
Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.