Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET

wscript launch exe file spaces in path

Home Forums Scripting Windows Script Host wscript launch exe file spaces in path

Viewing 1 post (of 1 total)
  • Author
    Posts

  • confuseis
    Participant
    #166833

    Hi

    Ive looked around the net for this but nothing thus far works. I have zero knowledge of vbs

    I want to execute a bat file via a small vbs script, idea is to launch the bat invisibly, this has worked perfectly. I’m launching this command from powershell, remote execution tool launches the vbs command.

    -k (Command to run)

    & .owexec.exe -c “computer1” -u “contosovader” -k “wscript.exe C:UsersPublicRecorded TVJK3.vbs C:UsersPublicRecorded TVTest-wscript.bat”

    The space in the Recorded TV section of the file name is the blocker here.

    Error: There is no file extension with “c:usersrecorded”,

    The articles Ive read mention using triple quotes “”” Ive tried numerous different combinations but nothing works, So difficult to deal with a simple thing such as a space

    Any ideas ?

    Thanks

    Confuseis

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: