Jump to content
Sign in to follow this  
cjamit

/errorstdout

Recommended Posts

cjamit

Hi,

i've done mucho simple scripts like this before, but after updating to the newest version, when trying to run this one line script i get a /errorstdout error, with no furhter explanation..

searching previous posts have come up with nothing like my problem.

tia

Run ( 'xcopy /s /c /d /e /i /r /k /y "C:\Documents and Settings\%username%" "\\server\backup\%username%" ' )

Share this post


Link to post
Share on other sites
Andreik

Hi,

i've done mucho simple scripts like this before, but after updating to the newest version, when trying to run this one line script i get a /errorstdout error, with no furhter explanation..

searching previous posts have come up with nothing like my problem.

tia

Run ( 'xcopy /s /c /d /e /i /r /k /y "C:\Documents and Settings\%username%" "\\server\backup\%username%" ' )

You can use @UserName

Run ('xcopy /s /c /d /e /i /r /k /y "C:\Documents and Settings\"' & @UserName & ' "\\server\backup\"' & @UserName)

When the words fail... music speaks

Share this post


Link to post
Share on other sites
rasim

cjamit

Try this:

Run(@ComSpec & ' /c xcopy /s /c /d /e /i /r /k /y "C:\Documents and Settings\%username%" "\\server\backup\%username%"', @SystemDir, @SW_HIDE)

Share this post


Link to post
Share on other sites
rasim

cjamit

Damn! ;)

Help

ExpandEnvStrings

Changes how literal strings and % symbols are interpreted. By default strings are treated literally, this option allows you to use %environment% variables inside strings, e.g., "The temp directory is: %temp%".

1 = expand environment variables (similar to AutoIt v2)

0 = do not expand environment variables (default)

Without this option the usual way would be: "The temp directory is: " & EnvGet("temp")

Example:

Opt("ExpandEnvStrings", 1)

MsgBox(0, "Temp", "%temp%")

:D

Share this post


Link to post
Share on other sites
cjamit

cjamit

Damn! ;)

Example:

Opt("ExpandEnvStrings", 1)

MsgBox(0, "Temp", "%temp%")

:D

###############

Thanks, this seemed to do the trick, with the Opt("ExpandEnvStrings", 1) command

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.