MSFN Forum: Calling a reg file from cmdlines.txt - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Calling a reg file from cmdlines.txt Rate Topic: -----

#1 User is offline   zedox 

  • XPize Darkside Author
  • PipPipPipPipPip
  • Group: Members
  • Posts: 706
  • Joined: 25-August 05

Posted 07 March 2006 - 06:44 AM

Hey, I want my cmdlines.txt file to call a registry file from a folder on the cd...

what code do i need to make this happen?

The reg file is called RegistryTweaks.reg and is located ina folder called "Registry Tweaks" within the $OEM$ folder on my UA CD.

"REGEDIT /s Registry Tweaks/RegistryTweaks.reg"

Doesnt work.


#2 User is offline   Nepali 

  • Pride of Nepal
  • PipPipPipPip
  • Group: Members
  • Posts: 519
  • Joined: 09-July 05

Posted 07 March 2006 - 07:05 AM

try 8.3 folder structure

plz define whats in ur cmd file as well

i.e
make ur foldername shorter(no spaces)

This post has been edited by Nepali: 08 March 2006 - 04:46 AM


#3 User is offline   mmarable 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 377
  • Joined: 01-November 03

Posted 07 March 2006 - 07:27 AM

I agree. Start simple, then make it more advanced. It may have a problem with the long filenames not being within their own quotes.

#4 User is offline   exrcizn 

  • Rock Star
  • PipPip
  • Group: Members
  • Posts: 123
  • Joined: 15-October 04

Posted 07 March 2006 - 07:36 AM

What if you change what you have

REGEDIT /s Registry Tweaks/RegistryTweaks.reg

to this

REGEDIT /s Registry Tweaks\RegistryTweaks.reg

The only difference being the \ instead of /

#5 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,020
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 07 March 2006 - 08:08 AM

This is how I have my reg tweaks in my Cmdlines.txt

Quote

[COMMANDS]"REGEDIT /S MediaPlayer-HK_U_D.reg"
"REGEDIT /S wmp10.reg"
"REGEDIT /S 000.reg"
"REGEDIT /S 020.reg"
"REGEDIT /S 040.reg"
"REGEDIT /S 060.reg"
"REGEDIT /S 080.reg"
"UserAcount.cmd"
"UaPrestart.cmd"
"RunOnceEx.cmd"

This post has been edited by gunsmokingman: 07 March 2006 - 08:10 AM


#6 User is offline   zedox 

  • XPize Darkside Author
  • PipPipPipPipPip
  • Group: Members
  • Posts: 706
  • Joined: 25-August 05

Posted 07 March 2006 - 08:09 AM

Its bizarre, as i call my .cmd file from a folder too.

this is my cmdlines.txt
[COMMANDS]
"REGEDIT /S Registry Tweaks/RegistryTweaks.reg"
"Batch Tweaks/RunOnceEx.cmd"

The RunOnceEx.cmd runs fine, but RegistryTweaks.reg doesn't work.

@Nepali
I can't see how posting whats in my .cmd file would be of any help.

#7 User is offline   DL. 

  • Tweaker or whatever I happen to be focused on at the moment..
  • PipPipPip
  • Group: Members
  • Posts: 489
  • Joined: 05-March 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 March 2006 - 08:43 AM

I totally agree with exrcizn, no /:s in local paths!

You could also try using foldernames without spaces.
Putting .\ or just \ right before the path (.\Registry Tweaks\RegistryTweaks.reg) is another thing to try.

#8 User is offline   zedox 

  • XPize Darkside Author
  • PipPipPipPipPip
  • Group: Members
  • Posts: 706
  • Joined: 25-August 05

Posted 07 March 2006 - 08:47 AM

OK cool, I've tested it using cmd.exe on a running version of Windows.
It seems to work with backslashs, so I'll try the UA disc ona test machine now.

Cheers.

#9 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 07 March 2006 - 09:10 AM

Registry Tweaks has a space in its name and will not be accepted as correct cmdlines syntax.

Rename the directory to REG_TWKS and see if either of these works
"REGEDIT /s REG_TWKS\RegistryTweaks.reg"
"REGEDIT /s ..\$OEM$\REG_TWKS\RegistryTweaks.reg"

This post has been edited by Yzöwl: 07 March 2006 - 09:59 AM


#10 User is offline   CoolDude 

  • Group: Members
  • Posts: 7
  • Joined: 08-March 06

Posted 08 March 2006 - 02:22 AM

its the problem with the space in folder and filenames, use smaller names and it will work

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy