Link to home
Start Free TrialLog in
Avatar of Techdivision
Techdivision

asked on

. .\Variables.ps1 returning CommandNotFound

I am trying to call a variable called $company from one powershell script called "Variables.ps1" into another powershell script in the same folder called "edit_website.ps1" at the top of "edit_website.ps1" i have . .\variables.ps1 and then later on in the script i call on "$company" but it returns nothing leading me to think that the variable is not being loaded. When running the "edit_website" script it returns "the term '.\variables.ps1' is not recognized" Could anyone shine any light on why this is?
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Techdivision
Techdivision

ASKER

That was exactly the issue, put in the exact path and it worked perfectly. Thanks