July 5, 200719 yr 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:0The message I always get is "cannot find file and.bgi", but why is it looking for a file named like that?
July 5, 200719 yr You're missing a " there.You could try "%ALLUSERSPROFILE%\Documents\TestClient_BB.bgi" /all /timer:0as that has no spaces.Edit: Actually %ALLUSERSPROFILE% wont make any difference Edited July 5, 200719 yr by uid0
July 5, 200719 yr 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:0If 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:0or 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 July 5, 200719 yr by Sinistrality
Create an account or sign in to comment