Jump to content
Sign in to follow this  

Problem of runWait()

Recommended Posts

Here is my code, and it didn't work

$dir_path = "D:\Temp"

runWait(@COMSPEC & ' /c CDIMAGE.exe -l"Hotfixer" -h -n -d -o ' & $dir_path & 'C:\Hotfixer.iso', "", @SW_HIDE)

in DOS Command, the code should be:

CDIMAGE.exe -l"Hotfixer" -h -n -d -o D:\Temp C:\Hotfixer.iso

My basic question is how to use a Variable in such situation. I was totally confused with the " and '


Thank you for your help

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  

  • Create New...