Batch file over the network

Noisy

New member
I am trying to get some inhouse legacy software to work. This is going to be a bit wordy so hold tight.

Machine using the software: XP

Machine storing the data: Windows 7 Pro

The software is homebrewed. The user selects a vessel and needs to program a hardware key. Our program uses a batch file to call another program. Our program also passes on the vessel's name and path. Striped to the reliant part, this is what is passed to the command line:
Code:
 CP32.EXE -U -E"//Font/Master Quad Account/VesselName/Vesselname.128"
With machines running Win XP and Vista this ran without a problem. With Windows 7 the CP32.exe program return a message telling me it could not find the *.128 file.

Other information:

1) Since the Windows 7 machine does not touch a network that is outside of our shop I am currently sharing everything on the machine.

2) I am running the XP machine as an admin. I also created an Admin account on the windows 7 machine that has the same username/password as the XP machine.

3) From the XP machine I can get to all of the reliant folders and have full control via windows.

4) Set up another XP machine. Same problem.
 

My Computer

OS
Win Xp, Seven
Quick question about the syntax

I don't have an answer for you. this is a very interesting problem.
I am not sure I understand
the syntax. Where the quote marks are used. Without the quote at the beginning I read "-E" as a switch and then I see "//font..." I interpret that part to be a server named "font" with a directory named "Master Quad" and so forth.and this overall represents a complete path. Is that correct?
.
CP 3 2.exe -U -E"//Font/Master Quad Account/VesselName/Vesselname.128"
Kevin
 

My Computer

OS
windows 7
CP32.EXE -U -E -- Program name with two switches
"//Font/ -- Name of the Windows 7 machine on the network
/Master Quad Account/VesselName/ -- path on the Windows 7 machine that holds the file
Vesselname.128" -- Name of the file I am looking for.

The quotes are (or at least were) needed because the command line gets confused by spaces.
 

My Computer

OS
Win Xp, Seven
Thanks.I wish I could be more helpful. I guess there's a small chance that CMD.EXE is looking for 8.3 filenames but that doesn't seem likely. I'll be interested to see what comes of this.
 

My Computer

OS
windows 7
Couple of things come to mind assuming that the syntax is the same on win7 as it was on XP

Does the actual username on the win7 system exist as a user on the xp machine?
Does this user have sufficient permissions to the files/folders on the XP machine?

Due to the UAC on win7 the user will only be running the batch as a standard user (unless manually elevated) unless the standard user has specific rights to the files it will return a file not found or similar error.

If you assign full control permissions for the actual win7 user this should workaround the issue, unless the actual xp process requires admin credentials. If this is the case then this may be worked around by the use of runas or a scheduled task with the correct syntax
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ult, Windows 8.1 Pro,
CPU
Q9650-4.275GHz, E8600 4.5GHz, E6750-3.8GHz
Motherboard
Evga 780i FTW
Memory
G.Skill PC2 9600 1200Mhz 5 5 5 15 2T
Graphics Card(s)
GTX480
Sound Card
Asus Xonar D2
Monitor(s) Displays
HannsG
Screen Resolution
1680X1050
Hard Drives
GSkill Phoenix Pro 120GB SSD
PSU
ThermalTake Toughpower 1000Watt modular
Case
ThermalTake XaserV
Cooling
Xigmatek S1283
Keyboard
Logitech G15
Mouse
Logitech G9
Internet Speed
T1
Barman- Sorry for the delay. Busy week.
Does the actual username on the Windows 7 system exist as a user on the xp machine? Does this user have sufficient permissions to the files/folders on the XP machine?
Tried both. No luck. The Win 7 user is now an admin on the xp machine.
Due to the UAC on win7 the user will only be running the batch as a standard user (unless manually elevated) unless the standard user has specific rights to the files it will return a file not found or similar error.
Since all the program does is read a file on the Win 7 machine and then use it with a program on the xp machine I would suspect that a standard user would be enough. However, I will try giving my xp user specific rights to the file and see if that works.
 

My Computer

OS
Win Xp, Seven
Back
Top