Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Help with a batch file xcopy

- - - - - remxcopy

  • Please log in to reply
29 replies to this topic

#26
sam240

sam240

    Newbie

  • Member
  • 11 posts
  • Joined 16-April 15
  • OS:Windows 7 x64
  • Country: Country Flag

 

sam240,

 

Looks like your missng a parameter for imagex /apply. Look at the example at the bottom of the screen. 1 is used to set the image_number.

Try changing it to:

imagex /apply i:\lenovo\base\blank\%today%\image.wim 1 W:\

Well that did it. I also changed the %today% to %Today% not sure if that matters since Set Today has capital T.




How to remove advertisement from MSFN

#27
MHz

MHz

    Just simple

  • Member
  • PipPipPipPipPipPipPip
  • 1,675 posts
  • Joined 02-August 04
  • OS:Windows 7 x64
  • Country: Country Flag

That was easy.

 

With the case of variables, you can test that easy.

 

Copied from a command prompt

C:\> set NAME=Jack

C:\> echo %name%
Jack

Seems to be case insensitive. :)


  • sam240 likes this

#28
sam240

sam240

    Newbie

  • Member
  • 11 posts
  • Joined 16-April 15
  • OS:Windows 7 x64
  • Country: Country Flag

That was easy.

 

With the case of variables, you can test that easy.

 

Copied from a command prompt

C:\> set NAME=Jack

C:\> echo %name%
Jack

Seems to be case insensitive. :)

 

Well then that 1 did it. I never used that variable before. It always worked without it but I'm guess because of the script, it requires it.



#29
MHz

MHz

    Just simple

  • Member
  • PipPipPipPipPipPipPip
  • 1,675 posts
  • Joined 02-August 04
  • OS:Windows 7 x64
  • Country: Country Flag

The dynamic variables created by a for loop are case sensitive. %%A is different from %%a. So keep those to the same case.



#30
sam240

sam240

    Newbie

  • Member
  • 11 posts
  • Joined 16-April 15
  • OS:Windows 7 x64
  • Country: Country Flag

The dynamic variables created by a for loop are case sensitive. %%A is different from %%a. So keep those to the same case.

I think I wanna become a programmer! so cool =D

Programmer-clipart.jpg






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users