How to treat space in a path

qatest

New Member
Hi,

I have a below path that uses some arg and space and not working most times, however, it worked few times. I'm using powershell with javascript as the tool only accepts the below syntax.
Can anyone please help how I can append '&' to the path below to make ignore space . or any other idea.

WshShell.Run("powershell -file \"" + pathvar + "\\My Tests\\PickupTest.ps1")
 

My Computer

System One

  • Operating System
    Windows

wither 3

Vista Guru
Gold Member
I don't know if you got this resolved but, I'm not able to help you. I'm surprised that none of the more computer savvy folks
in the forum haven't replied.
 

My Computer

System One

  • Operating System
    Vista Home Premium 64 bit SP2
    Manufacturer/Model
    Cyberpower
    CPU
    Intel Quad CPU Q6700 2.67 GHZ
    Motherboard
    NVIDIA 780i
    Memory
    4 GB
    Graphics Card(s)
    MSI GTX 560 TI Twin Frozr
    Sound Card
    Sound Blaster SB Audigy
    Monitor(s) Displays
    Viewsonic VG2436
    Screen Resolution
    1920x1080p
    Hard Drives
    Samsung HD 105SI
    WDC WD20
    Case
    Apevia XJupiter
    Cooling
    air
    Mouse
    Logitech MX 600
    Keyboard
    Logitech MX 3200
    Internet Speed
    30 Mbps

wither 3

Vista Guru
Gold Member
Did you ever get this resolved? If so, what was the procedure?
 

My Computer

System One

  • Operating System
    Vista Home Premium 64 bit SP2
    Manufacturer/Model
    Cyberpower
    CPU
    Intel Quad CPU Q6700 2.67 GHZ
    Motherboard
    NVIDIA 780i
    Memory
    4 GB
    Graphics Card(s)
    MSI GTX 560 TI Twin Frozr
    Sound Card
    Sound Blaster SB Audigy
    Monitor(s) Displays
    Viewsonic VG2436
    Screen Resolution
    1920x1080p
    Hard Drives
    Samsung HD 105SI
    WDC WD20
    Case
    Apevia XJupiter
    Cooling
    air
    Mouse
    Logitech MX 600
    Keyboard
    Logitech MX 3200
    Internet Speed
    30 Mbps
Top