Jump to content

BGInfo: What's wrong with this command?


Recommended Posts

Hello,

I use the following command in a batch file to set up BGInfo:

C:\Documents and Settings\All Users\Documents\BGInfo.exe" "C:\Documents and Settings\All Users\Documents\TestClient_BB.bgi" /all /timer:0

The message I always get is "cannot find file and.bgi", but why is it looking for a file named like that?

Link to comment
Share on other sites


You're missing a " there.

You could try "%ALLUSERSPROFILE%\Documents\TestClient_BB.bgi" /all /timer:0

as that has no spaces.

Edit: Actually %ALLUSERSPROFILE% wont make any difference

Edited by uid0
Link to comment
Share on other sites

Typically quotes are only required when you have spaces in the folder names.

e.g. "C:\Documents and Settings\All Users\Documents\BGinfo.exe" "C:\Documents and Settings\All Users\Documents\testclient_BB.bgi" /all /timer:0

If you use the system variable uid0 used above it should not require quotes:

e.g. %ALLUSERSPROFILE%\Documents\BGinfo.exe %ALLUSERSPROFILE%\Documents\testclient_BB.bgi" /all /timer:0

or if you were to put the bginfo.exe and testclient_BB.bgi file in c:\windows (where I put mine)

e.g. c:\windows\bginfo.exe c:\windows\testclient_BB.bgi /all /timer:0

(I don't use the /all switch, not necessary for my purposes as I load it from HKCU/..../run)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"BGInfo"="C:\\Windows\\System32\\bginfo.exe c:\\windows\\system32\\default.bgi /timer:0"

Edited by Sinistrality
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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